Question: Ppen a new class file and name it: Employee. - Declare a public field with type String and name it: FirstName, - Declare a scatic

 Ppen a new class file and name it: Employee. - Declare

Ppen a new class file and name it: Employee. - Declare a public field with type String and name it: FirstName, - Declare a scatic field with type int and name it age. - Declare a private field with type String and name it ID. - Assign to ID a null value. - Declare a constructor and inside it: - Give an initial value to FirstName. - Go to Main.java and create a new object in the main method. - Assign to FirstName your name as a value using the object you have created. - Assign to age your age number as a value using the class name Student. - Make a public getlastName method inside the student class, with type String. - Make a public setlastName method inside the student class, with the type void and String parameter. Output should be similar to this: First name : Fatimah Your ID : 101451444 Age : 21

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!