Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Help] inhe
#5
Yes Buran is correct.

To be more clear, the issue is that your extra indentation has defined the methods inside the the __init__ method, so they would have only been able to be called during instantiation. By unindenting, the methods move back to being instance methods.

This was not an issue with inheritance. You would have seen this exception on an instance of Coin as well.
Reply


Messages In This Thread
[Help] inhe - by Mike919 - Apr-04-2020, 11:59 AM
RE: [Help] inhe - by buran - Apr-04-2020, 12:20 PM
RE: [Help] inhe - by Mike919 - Apr-04-2020, 01:12 PM
RE: [Help] inhe - by buran - Apr-04-2020, 01:19 PM
RE: [Help] inhe - by leeacto - Apr-04-2020, 01:39 PM

Forum Jump:

User Panel Messages

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