Question: Problem # 1 : Create a new Employee Class Build a new Employee class ( Employee . java ) . This class will be a

Problem #1: Create a new Employee Class
Build a new Employee class(Employee.java). This class will be a sub-class of Person. So it will inherit all the properties of Person(FirstName, LastName, Address and Email). Also add 2 new properties, an employee id number and a salary. Create this class, make sure to add 2 constructors(one that takes no args and 1 that takes all props from both the Person class and the Employee class) and a display() method that prints out all the props from both the Person class and the Employee class. Then use main to test out this class.
Main Code
Employee e1;
e1= new Employee(2323,Bill,Clinton,Marietta,bc@msn.com,43000.00);
e1.display();//prints all 6 properties

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