Question: Create a class Person with two member variables (name, age), and a constructor to initialize name and age variables. Create a class Student that is

 Create a class Person with two member variables (name, age), and

Create a class Person with two member variables (name, age), and a constructor to initialize name and age variables. Create a class "Student that is a child of Person. The Student class has two member variables (grade, subject). The student class has a method print()" to print all of its member variables(grade and subject) and all of its parent variable (name and age). O

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!