Question: Q1:(4 Points) Identify and fix the two errors in the following Java program public abstract class A I private int b: public A(int b)f abstract
Q1:(4 Points) Identify and fix the two errors in the following Java program public abstract class A I private int b: public A(int b)f abstract public void display) public boolean check(int x) this.b-b: if (x>0) return true: elsel return false: public elass B extends A private int c B(int int c){ b, this.c-ci public public boolean check(int x) if (x>5) return false; return true: Errorl is: Error2 is: Fix error 1: Fix error 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
