Question: In the Java language. An employee is a person, where every person has a name and date of birth; but an employee further has an
In the Java language.


An "employee" is a "person", where every person has a name and date of birth; but an employee further has an employee number and date of hire. So a complete "employee" instance has every attribute and feature available in the base class "person" Consider the following terminology when thinking about class inheritance: An employee is-a person Class employee is derived from the base class person. Person is the superclass and employee is the subclass. Employee inherits or extends class person. Employee reuses the features of class person as its own identity! This allows for faster and more consistent software development. person.java implement class person which contains the following attributes: name (a non empty string) -default to "private contractor" age (a positive integer under 150-default to 18 implement all the necessary constructor(s), access and validation helper/predicate methods, and a toString method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
