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 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
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 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
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 12RQ
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
Similar questions
Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,