Question: You are given a partially completed project containing 4 header files: Container.h student.h undergrad.h grad.h #ifndef _UNDERGRAD_H #define _UNDERGRAD_H // Q1a: Create Undergrad class (5
You are given a partially completed project containing 4 header files:
Container.h
student.h
undergrad.h
grad.h
#ifndef _UNDERGRAD_H #define _UNDERGRAD_H // Q1a: Create Undergrad class (5 points) // Part 1: Create a child class of the Student class named 'Undergrad'
// Part2: Declare constructor which accepts the same 3 parameters as the parent class Student's constructor.
// Pass the 3 parameters to the super constructor of the Student class.
// Part 3: Re-declare the method displayInfo (virtual method found inside of parent class Student)
#endif // _UNDERGRAD_H
#ifndef _GRAD_H_ #define _GRAD_H_ // Q1b: Create Grad class (5 points) // Part 1: Create a child class of the Student class named 'Grad'
// Part2: Declare constructor which accepts the same 3 parameters as the parent class Student's constructor.
// Pass the 3 parameters to the super constructor of the Student class.
// Part 3: Re-declare the method displayInfo (virtual method found inside of parent class Student)
#endif // _GRAD_H_
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
