Question: Predict the output of the following program? class A { public A(int x) { } } class B extends A{ public B() { }
Predict the output of the following program? class A { public A(int x) { } } class B extends A{ public B() { } } public class C { public static void main(String[] args) { B b = new B(); } }
Step by Step Solution
There are 3 Steps involved in it
The image displays a piece of Java code with three classes A B and C Class B is a subclass of class ... View full answer
Get step-by-step solutions from verified subject matter experts
