Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started