Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Find one occurrence of inheritance and find one occurrence of composition from this class diagram and implement it using a java object oriented language. Your
Find one occurrence of inheritance and find one occurrence of composition from this class diagram and implement it using a java object oriented language. Your implementation (inheritance) must cover the super class and at least two sub-classes.
PartTime Professor TeachingAssistants FullTime Professor Salary - Credit Hour - NumOfWeeks - Hour Rate salary - Hours - HourRate University Country - Qualification - experience Years - salary - overtime + set_salary(Hours HourRate) + get_salary(Hours * HourRate) + toString() + sel_salary(CreditHour* NumOfWeeks HourRate) + gel_salary(CreditHour NumOfWeeks * HourRate) + to Stringo - tax Extends Extends- - set_University Country + get_University Country + set_Qualification() + get_Qualification) + set_experience Years) + get_experience Years() + set_salary(salary - salary * tax + overtime) = get_salary(salary - salary tax - overtime) - toString() Extends Person Student Address Department - DepartmentNumber - Studenti - name - address - contact Number IDCard Number - DateOfBirth Street - buliding Number - apartment Number - postalCode + set_Department Number() +get_DepartmentNumbero) + set_StudentID +get_Studenti) Section Course + set_name +get_name + set_address) + get address) + sel_contactNumber() +get_contactNumber() + set_IDCard Number() +get_ID CardNumber + set_DateOfBirth -get_DateOfBirth +toString() name: String CreditHour int -deprtment: Deprtment CourseNumber int - prerequisites: list
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