//A
class SuperClass {
public void fun() {
System.out.println(“SupperClass”);
}
}
class ChildClass1 extends SuperClass {
public void fun() {
System.out.println(“ChildClass1”);
}
}
class ChildClass2 extends SuperClass {
public void fun() {
System.out.println(“ChildClass2”);
}
}