Question: I need the solution plz IS108-Object-Oriented Programming Lab #10-Polymorphism Oblectives: h this lab, the following topic will be covered: 1. Polymorphism Task: Given below the

I need the solution plz
I need the solution plz IS108-Object-Oriented Programming Lab \#10-Polymorphism Oblectives: h this
lab, the following topic will be covered: 1. Polymorphism Task: Given below

IS108-Object-Oriented Programming Lab \#10-Polymorphism Oblectives: h this lab, the following topic will be covered: 1. Polymorphism Task: Given below the dasses Lab10, Person, Employee, and Student, complete the following program to produce the output provided. Note: - Write the missing methods only. - Do not modify the classes Person, Employee, Student. - Do not change the main method. - Put each class in a separate file Here is a sample run of the program: publie elass Person ( private String nano, phone, public Person(string name, String phone) this.name - name: this.phone - phoner ) publie String tostring() i return name + "\t" + phone; ) public elass Enployee extends Personl private int sid; private int salary: public Employee(steing name, String phone, int sid, int salary) super (name, phonei: this, sid = sid: this.salary - salaryi public int getSalary(l i return salary; ) Poverylde public string tosteing() I return super,tostring | angle+"t"+sid+"\t"+ salary; 1

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!