Question: vas + X C / @ / B Q D Question 2 class Employee { private String name; private int salary; public Employee(String name, int

vas + X C / @ / B Q D Question 2 class Employee { private String name; private int salary; public Employee(String name, int salary) { this. name = name; this. salary = salary; public Employee() { name = "N/A"; salary = -1; ] public String toString() { return name + " " + salary; } class Manager extends Employee { pri te int bonus; public Manager(String name, int salary, int bonus) { is. bonus = bonus, public String toString() { return super. tostring() + " " + bonus; ] public class Main { public static void main ( String orgs) ( Employee m = new Manager ("Anna ", 280, 2); Employee e = new Employee( "John ", 106); m = ei System. out. printIn(e ); LO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
