Question: Extract one error from the following program and Correct that error? public class A { public void print { System.out.println(Hello From A); } } public

Extract one error from the following program and Correct that error? public class A { public void print { System.out.println("Hello From A"); } } public static class B extends A{ public void print({ System.out.println("Hello From B"); } public void status() { System.out.println("Class B is a subclass from Class A"); 3 } } public static void main(String[args) { Ax=new BO: X.printo: Xistatus()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
