Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Construct a UML Class Diagram of Employee on the on of the following specification: Three Classes: Employee, Fulltime Staff, and Part-time Staff Class Employee: Attributes

image text in transcribed

Construct a UML Class Diagram of Employee on the on of the following specification: Three Classes: Employee, Fulltime Staff, and Part-time Staff Class Employee: Attributes Name: String (public) Address: String ID#: String SSN: String Actions: reportTax (): double rightarrow Takes no parameters (public) End Class Employees class Fulltime staff: Attributes: Annual salary: float Health plan: string Actions: selectBenefit () rightarrow Takes no parameters (public) End Class Fulltime Staff Class Part-time staff: Attributes HourlyRate: float Weekly hours: int Actions: fillReport () rightarrow Takes no parameter End Class Part-time staff The relationship a these three classes is that Class Employee is the generalization of Class Fulltime Staff and Class Part-time Staff

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions