Question: Q 6 . Design a class called Student that describes a DCU Student. The class should have data members name, id number, programme ( e

Q6. Design a class called Student that describes a DCU Student. The class should have data members name, id number, programme (e.g. ECE) and year (e.g.2). Add a suitable constructor and a display() method. Q7. 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 10 modules permitted). Add a suitable constructor to the class. 08. 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 XC14 the child class should call the display() method in the parent class, to avoid duplicating any code. 09. 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 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 Programming Questions!