Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA thanks for helping III. Programming (3 questions, 10pts for each, 30pts) 1. Please use the object-oriented method to design the company's employee management program

JAVA

image text in transcribed

thanks for helping

III. Programming (3 questions, 10pts for each, 30pts) 1. Please use the object-oriented method to design the company's employee management program according to the following description. A company has two roles: Employee and Manager. The manager is a special employee. Each employee object contains information about id, name, and age. In addition to the above basic information, the manager object also has position information. Employees and managers in the company have the following two basic operations: (1) printInfo() can output the basic information of the object (2) retire() can judge whether the retirement age is reached (the company stipulates that the retirement age of employees is 60 years old, and the retirement age of managers is 65 years old) Requirements: Complete the design of the Employee class and Manager class, and write a test class to initialize some employee and manager information, and output the information of employees and managers who have reached the retirement age

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

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions