Class B extends class A. Class A defines an __str__ method that returns the string representation of its instance variables. Class B defines a single instance variable named _age, which is an integer. Write the code to define the __str__ method for class B. This method should return the combined string information from both classes. Label the data for _age with the string “Age: “.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here