Python Forum
[split] Python Class Problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Python Class Problem
#9
But why do you think in terms of physical/tangible (i.e. something you can touch)? It's not different with the abstract concepts. I understand that initially it may be somewhat difficult, but it's no different than understanding the abstract concept itself. Actually understanding the concepts itself is the first step in order to model it, to describe it as a class. It's no different than understanding abstract concepts e.g. in school. Think of it as "thing" or "object" if you like (by the way in python3 all classes inherit from object - the base class for all classes). Think what attributes it has and are of interest of you. If it helps you may try to distinguish properties (i.e. the characteristics) and methods (what it can "do", actions).


I really don't know how to better explain it.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
[split] Python Class Problem - by astral_travel - Apr-28-2020, 08:36 PM
RE: [split] Python Class Problem - by astral_travel - Apr-29-2020, 07:33 AM
RE: [split] Python Class Problem - by ndc85430 - Apr-29-2020, 07:41 AM
RE: [split] Python Class Problem - by buran - Apr-29-2020, 07:59 AM
RE: [split] Python Class Problem - by astral_travel - Apr-29-2020, 08:01 AM
RE: [split] Python Class Problem - by buran - Apr-29-2020, 08:16 AM
RE: [split] Python Class Problem - by astral_travel - Apr-29-2020, 08:20 AM
RE: [split] Python Class Problem - by michael1789 - Apr-29-2020, 07:13 PM
RE: Python Class Problem - by michael1789 - Apr-28-2020, 11:22 PM
RE: Python Class Problem - by astral_travel - Apr-29-2020, 06:09 AM
RE: Python Class Problem - by buran - Apr-29-2020, 06:31 AM
RE: Python Class Problem - by astral_travel - Apr-29-2020, 06:39 AM
RE: Python Class Problem - by buran - Apr-29-2020, 06:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Class and methods ebn852_pan 9 477 May-20-2024, 08:46 PM
Last Post: ebn852_pan
  class definition and problem with a method HerrAyas 2 335 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  Class test : good way to split methods into several files paul18fr 4 579 Jan-30-2024, 11:46 AM
Last Post: Pedroski55
  [split] Class takes no arguments bily071 2 688 Oct-23-2023, 03:59 PM
Last Post: deanhystad
  Practice problem using lambda inside the class jagasrik 3 2,237 Sep-12-2020, 03:18 PM
Last Post: deanhystad
  Python Class Problem JPCrosby 2 2,335 Apr-28-2020, 06:18 PM
Last Post: buran
  Class problem duckduck23 2 2,064 Feb-10-2020, 08:52 PM
Last Post: jefsummers
  Class code problem from CS Dojo YouTube Dixon 3 2,314 Feb-04-2020, 10:23 PM
Last Post: snippsat
  Class Problem scratchmyhead 3 2,377 Nov-19-2019, 08:28 AM
Last Post: Larz60+
  split by character class Skaperen 3 2,409 Jul-15-2019, 02:29 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020