Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

  image text in transcribed 

Construct a UML Class Diagram of Employee on the basis of the following specification: Three Classes: Employee, Fulltime Staff, and Part-time Staff Class Employee: Attributes: Name: String Address: ID#: SSN: (public) String String String Actions: reportTax(): double Takes no parameters (public) End Class Employee Class Fulltime Staff: Attributes: Annual salary: float Health plan: string Actions: selectBenefit () End Class Fulltime Staff Takes no parameters (public) Class Part-time Staff: Attributes: Hourly Rate: Weekly hours: Actions: fill Report () float int Takes no parameters End Class Part-time Staff The relationship among 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

EMPLOYEE name String address String id ... 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_2

Step: 3

blur-text-image_3

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

Accounting Information Systems

Authors: Vernon Richardson, Chengyee Chang, Rod Smith

2nd edition

1260153156, 1260153150, 978-1260153156

More Books

Students also viewed these Programming questions