Question: class TestInheritance { public void ) { System.out.printIn ( M 1 of TestInheritance ) ; } public static void main ( String [ ]

class TestInheritance {
public void ){
System.out.printIn("M1 of TestInheritance");
}
public static void main(String[] args){
TestInheritance ref = new TestInheritance1();
ref.m1();
}
}
class TestInheritance 1 extends Testlnheritance {
public static void
System.out.printIn("M1 of TestInheritance1");
}
}
What will be the output of the above code snippet?
 class TestInheritance { public void ){ System.out.printIn("M1 of TestInheritance"); } public

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!