Question: Question: Using Java Application please add two other class named Lawyer and Secretary. There should be 4 class in total. Then run the program. I

 Question: Using Java Application please add two other class named Lawyer

Question:

Using Java Application please add two other class named Lawyer and Secretary. There should be 4 class in total. Then run the program. I need the screenshot of the program running and the code. Thak you so much.

i PowerPoint File Edit View Insert Format Arrange Tools Slide Show Window Help 83%)D Sun 4:42 PM C ach Search in Presentation Home Insert Design Transitions Animations Slide Show ReviewView Xcut -1 E Layout . Shape Fill Copy hape Outine Paste Convert to Picture Shapes Text Arrange Quick SmartArt ormatNow Reser Slide Box Styles Polymorphism and parameters . You can pass any subtype of a parameter's type. public class EmployeeMain public static void main (String args) Lawyer lisa-new Lawyer Secretary stevenew Secretary) printInfo (118a) ; printInfo (steve) public static void printinfo (Employee empl) System . out .printIn("salary. " + empi . getSalary()); System.out.println("v.days: "+ empl.getVacationDays O System.out.println ("v.orm:empl.getVacationForm System.out.println OUTPUT: salary: 50000.0 v.days: 15 v.form: pink salary: 50000.0 v.days: 10 v.form: yellow 53 Click to add notes Slide 53 of 90 English (United States) Notes-Comments

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!