Question: Java begin{tabular}{|l|l|} hline multicolumn{2}{|l|}{ Employee } hline -firstname: String & employee's first name hline -lastname: String & employee's last name hline -salary:
Java
\begin{tabular}{|l|l|} \hline \multicolumn{2}{|l|}{ Employee } \\ \hline -firstname: String & employee's first name \\ \hline -lastname: String & employee's last name \\ \hline -salary: double & list of names of subordinates, fixed sized of 3 , starts empty \\ \hline -subordinates: String[3] & Methods \\ \hline \end{tabular} In your main method in lastname.java, I want you to create an employee, you may choose what values to use to initialize the object's fields to, but you must use the methods you defined in the Employee class to set the fields in order to receive full credit for this part of the lab. For full credit, you must also invoke the methods you created to print out the field values within your lastname_lab1.java file. You are also responsible for including error checking
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
