Create the following classes based on the given declaration. Also, each class should have the default constructor. Just place the prototype of the constructors in the class but you dont have to implement them. The default constructor is a public member.   A) CSUSM is an object of class University. Class University has the follow private attributes: -UnivName: string -UnivDepts: a vector of Department class -UnivStudents: a vector of student class -UnivAddress: string -UnivAge: int    B) Each department has the following private attributes: -deptName: string -deptFaculty: vector of Faculty class -deptYearCreated: int   C) Each student has the following private attributes: -studName: string  -studYearOfStudy: int -studNumber: long  -studCoursesTaken: vector of Course class    D) Each faculty has the following private attributes: -FacName: string -FacYearofExperience:int -FacId: long -FacCoursesTeaches: vector of Course Class    E) Each course has the following private attributes: -courseTitle: string -courseNumber: float -courseNumOfCredits: int

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter11: Inheritance And Composition
Section: Chapter Questions
Problem 1PE: In Chapter 10, the class clockType was designed to implement the time of day in a program. Certain...
icon
Related questions
Question
100%

Create the following classes based on the given declaration. Also, each class should have the default constructor. Just place the prototype of the constructors in the class but you dont have to implement them. The default constructor is a public member.

 

A) CSUSM is an object of class University. Class University has the follow private attributes:

-UnivName: string

-UnivDepts: a vector of Department class

-UnivStudents: a vector of student class

-UnivAddress: string

-UnivAge: int 

 

B) Each department has the following private attributes:

-deptName: string

-deptFaculty: vector of Faculty class

-deptYearCreated: int

 

C) Each student has the following private attributes:

-studName: string 

-studYearOfStudy: int

-studNumber: long 

-studCoursesTaken: vector of Course class 

 

D) Each faculty has the following private attributes:

-FacName: string

-FacYearofExperience:int

-FacId: long

-FacCoursesTeaches: vector of Course Class 

 

E) Each course has the following private attributes:

-courseTitle: string

-courseNumber: float

-courseNumOfCredits: int

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr