Question: Arrays and Objects a) Create a class Student that has a constructor that prints Hello, I am a student. b) In the class Student put

Arrays and Objects

a) Create a class Student that has a constructor that prints Hello, I am a student.

b) In the class Student put a destructor that prints Good bye, Student out.

c) Create a class Course that has an array of 10 Students and initialize it

d) Create a class University that has an array of 10 Courses and initialize it

e) Create, in a main() function, one and only one object University.

f) There is NOT inheritance here. Not at all. g) Add constructors and destructors as needed in the classes Student and University .

h) The program should print 200 messages on the screen the constructor and the destructor messages for each of the 10 students for each of the 10 courses. Remember that constructors and destructors are called automatically

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!