Apr-04-2020, 01:39 PM
Yes Buran is correct.
To be more clear, the issue is that your extra indentation has defined the methods inside the the
This was not an issue with inheritance. You would have seen this exception on an instance of Coin as well.
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.