Question: Create 3 interfaces for a personnel, and in each one make an abstract method. First interface for his personal info having its abstract method to

Create 3 interfaces for a personnel, and in each one make an abstract method. First interface for his personal info having its abstract method to accept 3 parameters: name, age, location, and returning these info through an string array. Second interface for his educational info having its abstract method to accept 3 parameters: last degree, field of study, graduation year, and returning these info through an string array. Third interface for his employment info having its abstract method to accept 2 parameters: position, salary and returning these info through an string array.

Create a class employee that implements all 3 interfaces; and has a method, promotion, to check if personnel is eligible for promotion or not. Create another class family having 2 attributes: number of family members, and whether family is low-income or not; this class has its own constructor and also a method show() to display family information. Class employee has its own constructor and extends the class family as well.

Promotion criteria: (age>45 and family members>=2 and position is manager) or (age>50 and degree=Ph.D. and salary<5000)

Create your client class to test all above-mentioned interfaces and classes.

Step by Step Solution

3.42 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the implementation of the interfaces classes and client class according to your requirements Interface for personal info interface PersonalInfo String getPersonalInfoString name int age String l... View full answer

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 Programming Questions!