Question: Create a class with a method that prints This is parent class and its subclass with another method that prints This is child class.

Create a class with a method that prints "This is parent class" and its subclass with another method that prints "This is child class". Now, create an object for each of the class and call 1 - method of parent class by object of parent class 2- method of child class by object of child class 3-method of parent class by object of child class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
