Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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 + set_Street) + get_Street + set_bulidingNumber) -get_bulidingNumber) + set_apartment Number() +get_apartmentNumber() + set_postalCode) + gef_postalCode() + to String - room - teacher - Section Num - Student - Course - NumOfStudentsin Section - set_name) +get_name() set_CreditHouro) -get_CreditHour + set_CourseNumber -get_CourseNumbero) + toStringo + set_room) + get_room) + set_teacher) + get_teacher) + set_Section Numo + get_Section Num) + set_Student + get_Student) + sel_Course + get_Course + set_NumOfStudentsinSection() + get_NumOfStudents in

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

What is the relationship between diversity, inclusion, and equity?

Answered: 1 week ago