Create 3 interfaces for a personnel, and in each one make an abstract method. First interface for
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 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.
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts