Question: Problem: (a) Note that in Course there is an instance variable mRoster which is an instance of Roster. When a Course object is deleted, the

 Problem: (a) Note that in Course there is an instance variable

Problem: (a) Note that in Course there is an instance variable mRoster which is an instance of Roster. When a Course object is deleted, the Roster instance mRoster will also be deleted. Given that, what type of class relation- ship, if any, exists between Course and Roster? If there is a relationship, modify the diagram to indicate the relation- ship and label each end of the relationship with a multiplicity. (b) Note that in Roster there is an instance variable m.Students which is an ArrayList of Student objects. When a Roster object is deleted, m.Students is also deleted, but each Student object within mStudents is not deleted. Given that, what type of class relationship, if any, exists be- tween Roster and Student. If there is a relationship, modify the diagram to indicate the relationship and label each end of the relationship with a multiplicity. (c) What type of class relationship, if any, exists between Student and UndergradStudent? If there is a relationship, modify the diagram to indicate the relationship and label each end of the relationship with a multiplicity (d) What type of class relationship, if any, exists between Student and Grad Student? If there is a relationship, modify the diagram to indicate the relationship and label each end of the relationship with a multiplicity. (e) What type of class relationship, if any, exists between UndergradStudent and GradStudent? If there is a relation- ship, modify the diagram to indicate the relationship and label each end of the relationship with a multiplicity Course mRoster: Roster Roster mStudents: ArrayList Student - mName: String mld: int UndergradStudent GradStudent

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!