Create a java class for Objective: Create a simple university system that manages departments and the courses they offer.
• Classes to Implement:
• Person: Base class with properties like name and age.
• Student: Inherits from Person, adds properties like list of courses.
• Instructor: Inherits from Person, with properties like list of courses.
• Course: Has properties like course _name, course_code, and instructor (aggregation).
• Department: Contains a list of courses offered (aggregation) and a head (Instructor as an aggregated object).
- Draw the class diagram of this exercise.
- Implement all classes
- Implement call class
6.1. Create list of Students and instructors in one array
6.2. Create course java with 4 students.
6.3. Create department with this courses
• Classes to Implement:
• Person: Base class with properties like name and age.
• Student: Inherits from Person, adds properties like list of courses.
• Instructor: Inherits from Person, with properties like list of courses.
• Course: Has properties like course _name, course_code, and instructor (aggregation).
• Department: Contains a list of courses offered (aggregation) and a head (Instructor as an aggregated object).
6.2. Create course java with 4 students.
6.3. Create department with this courses