Professional Documents
Culture Documents
class Super_class {
// Instantiating subclass
sub.display();
super.display();
// printing the value of variable num of subclass
obj.my_method();
OUTPUT:
interface FirstInterface {
interface SecondInterface {
System.out.println("Some text..");
class Main {
myObj.myMethod();
myObj.myOtherMethod();
}
OUTPUT:
Some text..