Question: Q 6 . Design a class called Student that describes a DCU Student. The class should have data members name, id number, programme ( e
Q Design a class called Student that describes a DCU Student. The class should have data members name, id number, programme eg ECE and year eg Add a suitable constructor and a display method. Q Create a child class of Student called Undergraduate, which has the additional property of an array of modules use an array of strings, with a maximum of modules permitted Add a suitable constructor to the class. Add a suitable display method to your child Undergraduate class that overrides the display method in the parent Student class. To follow best practice, the display method in XC the child class should call the display method in the parent class, to avoid duplicating any code. Add a destructor to both classes and test that they work as expected.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
