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

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 2 #include 3 using namespace std 4 /sBirthday Class/ 5 class Birthday 6 private: int mont, day, year; 8 public: Birthday (int m int d, int y) : month (m, day (d),year(y) [ 10 12 13 14 15 16 Person Class**/ 17 class Person l 18 private; 19 20 21 public: void printDate O cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!