Question: Create three classes GrandParent which inherits from object, Parent which inherits from GrandParent, and Child which inherits from Parent. Each class should have one method
Create three classes GrandParent which inherits from object, Parent which inherits from GrandParent, and Child which inherits from Parent. Each class should have one method named whereami() that only prints a message indicating which class the method is in and prints a message indicating the methods execution is complete. Each method whereami should extend the whereami method from the inherited classes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
