Question: 9. [40 marks] (The Course class) Implement the classes Student and Course which are defined as follows, /I Course.h #ifndef COURSE H #de fine COURSE

 9. [40 marks] (The Course class) Implement the classes Student and

Course which are defined as follows, /I Course.h #ifndef COURSE H #de

fine COURSE H #include #include using namespace std; class Student public: Default

9. [40 marks] (The Course class) Implement the classes Student and Course which are defined as follows, /I Course.h #ifndef COURSE H #de fine COURSE H #include #include using namespace std; class Student public: Default constructor Student ) // Creates a student with the specified name and id. Student (const string& name, int student_id) // Returns the student name string get_name ) const /Returns the student id. int get_student_id ) const: /Sets the student name. void set_name (const string& name); /Sets the student id. void set student_id (int student_id); Prints the student name and id

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!