Question 9: Consider the following: Class Course { protected: long CRN public: Course( long c ); }; // end of class #include #include "Courses.h" using namespace std; Class Student { private: const...


Question 9: Consider the following:<br>Class Course<br>{<br>protected:<br>long CRN<br>public:<br>Course( long c );<br>}; // end of class<br>#include <string><br>#include
stdCourses ; static int totalStudents; Public: Student (); Student string uni,string n, long id, vector c ); }; // end of class //Write the Default constructor here: (everytime a Student is created, total llstudents increases by one) "/>
Extracted text: Question 9: Consider the following: Class Course { protected: long CRN public: Course( long c ); }; // end of class #include #include "Courses.h" using namespace std; Class Student { private: const string university; string name; long studID ; vector stdCourses ; static int totalStudents; Public: Student (); Student string uni,string n, long id, vector c ); }; // end of class //Write the Default constructor here: (everytime a Student is created, total llstudents increases by one)
IWrite the Overloaded constructor here: (everytime a Student is created, total<br>llstudents increases by one)<br>// Instantiate the static variable totalStudents to 100 like you would in your<br>/Student.cpp file here<br>// Create an object of type Student using default constructor here<br>// Create an object of type Student using overloaded constructor here<br>/Write a void add To Courses ( Course c ) function that will add to student's vector<br>lof Courses<br>

Extracted text: IWrite the Overloaded constructor here: (everytime a Student is created, total llstudents increases by one) // Instantiate the static variable totalStudents to 100 like you would in your /Student.cpp file here // Create an object of type Student using default constructor here // Create an object of type Student using overloaded constructor here /Write a void add To Courses ( Course c ) function that will add to student's vector lof Courses

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here