Question: public class A { int no; public void display ( ) { System.out.println ( the number in A + no ) ; } public void
"public class A
int no;
public void display
System.out.printlnthe number in A no;
public void computeSquare
no no no;
public class B extends A
int no;
public Bint n int n
supern TN ;
no n n;
public void display
super.display;
System.out.printlnthe number in B no;
public void computeCube
no no no no;
public class AB
public static void mainString args
int n;
AB b new ABn n;
bdisplay;
bcomputeSquare;
bcomputeCube;
Ans
The out put?"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
