Question: 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

JAVA thanks for helping III. Programming (3 questions, 10pts for each, 30pts)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!