Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

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... 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

Smith and Roberson Business Law

Authors: Richard A. Mann, Barry S. Roberts

15th Edition

1285141903, 1285141903, 9781285141909, 978-0538473637

More Books

Students also viewed these Programming questions