This is the constructor in the class:
Course(int courseId, Instructor instructor, string courseName, string dept)
: courseId(courseId)
, instructor(instructor)
, courseName(courseName)
, dept(dept)
{ };
My problem is with the second argument Instructor instructor. What exactly does this mean because I have never seen mixing of two classes like this?
Instructorobject in order to create aCourse(and a copy of that object will be stored in the createdCourseobject)std::stringinstances ...