Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: calling on a method from one class into another class which is not a child
Post: RE: calling on a method from one class into anothe...

But getMaxX returns self.__mX which is an attribute of the world. I don't know how to include that in LifeForm or Fish? Seem __ plays a role here. I cannot simply do World.getMaxX().
NABA General Coding Help 5 2,829 Apr-29-2020, 07:26 PM
    Thread: calling on a method from one class into another class which is not a child
Post: RE: calling on a method from one class into anothe...

I don't know how to do it. So originally, there were World, Fish, Bear, and Plant class. I'm supposed to create a LifeForm class which would include the common methods for Fish and Bear and these two ...
NABA General Coding Help 5 2,829 Apr-29-2020, 07:10 PM
    Thread: calling on a method from one class into another class which is not a child
Post: calling on a method from one class into another cl...

I have a class called World, another one called Fish. Fish is not a child of World, and I want to call the method getMaxX() and getMaxY() into the Fish class, but I get attribute errors. How Can I Cal...
NABA General Coding Help 5 2,829 Apr-29-2020, 06:54 PM

User Panel Messages

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