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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 18RQ
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,