Question: Q1. - Create Employee Class and declare 2 instance variables employeelastname and employeenumber in it. - Create a constructor in the Employee class. Constructor receives

 Q1. - Create Employee Class and declare 2 instance variables employeelastname

Q1. - Create Employee Class and declare 2 instance variables employeelastname and employeenumber in it. - Create a constructor in the Employee class. Constructor receives values in 2 local variables employeelastname and employeenumber. - Create main() method in Employee class. In main create an object of employee class and pass your name and number to the constructor. - In the constructor, assign the value stored in local variables employeelastname and employeenumber to instance variables employeefirstname and employeenumber. - In main() display the employeefirstname and employeenumber

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