Question: 1: The method getAge expects no arguments and returns the value of an instance variable named self.age. Write the code for the definition of this
1: The method getAge expects no arguments and returns the value of an instance variable named self.age. Write the code for the definition of this method.
2: Explain why it's a good idea to make a new class a subclass of an existing class.
3: Class B is a subclass of class A. The __init__ methods in both classes expect no arguments. The call of class A's __ init__ method in class B is:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
