arguments to a class instance c 2b 2b

Solutions on MaxInterview for arguments to a class instance c 2b 2b by the best coders in the world

showing results for - "arguments to a class instance c 2b 2b"
Naya
14 May 2016
1int courseId = 0;
2Instructor instructor; // Here we default construct an Instructor
3std::string courseName = "Foo";
4std::string dept = "Bar";
5
6Course my_course(courseId, instructor, courseName, dept);
7//                         ^^^^^^^^^^
8//              Here the Instructor is being passed
9