Question: Create a Major class and Student class with two different private attributes for both major and student class respectively; major name, and number of credits

Create a Major class and Student class with two different private attributes for both major and student class respectively; major name, and number of credits and a public member function displayMajorInfo() and student name, age, major and a public member function displayStudentInfo(). c++ in the form above picture
A class can have as a member an object from another class. Code 14.12: Class composition example #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
