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

Question 7 Given the below program, why the bold text below is not valid? [4 marks] abstract class Employee abstract int getSalary(); } class Developer extends Employee private int salary; public Developer (int s) { salary = 3; > int getsalary() { return salary; } class abstract 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
