Computer Science, asked by komuingle7276, 2 months ago

2. class A{
{System.out.print("b1 ");}
public A{System.out.print("b1 ");}
}
ok
class B extends A{
static (System.out.print("r1 ");}
public B{System.out.print("r2 ");}
{System.out.print("r3 ");}
static (System.out.print("r4");}
}
class C extends B{
public static void main(String args[]){
System.out.print("pre");}
new cO;
System.out.print("C");
1​

Answers

Answered by vallinswami
0

Answer:

print("b1 ");} } ok class B extends A{ static (System.out.print("r1 ");} public B{System.out ...

Similar questions