Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
class A{
public static String speak(){return "A.speak";}
public String talk(){return "A.talk"; }
}
class B extends A{
public static String speak(){return "B.speak";}
public String talk(){return "B.talk"; }
}
// then in your main()
// employ polymorphism
A mya = new B();
System.out.println( mya.speak()); // static is still A
System.out.println( mya.talk()); // virtual function is B