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 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
Get step-by-step solutions from verified subject matter experts
