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

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

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!