Question: Question 7 Given the below program, why the bold text below is not valid? (4 marks] abstract class Employee abstract int getSalary(); N class Developer

Question 7 Given the below program, why the bold text below is not valid? (4 marks] abstract class Employee abstract int getSalary(); N class Developer extends Employee private int salary; public Developer (int s) { salary = 9; > int getSalary() { return salary: class abstracto public static void main(String[] args) { Employee di = new Developer (5000); Employee d3= new Employee()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
