Object Oriented Programming (OOPs)
© examsiri.com
Question : 24 of 72
Marks:
+1,
-0
Given:
and:
What are four valid examples of polymorphic method calls?
abstract class A {
  abstract void a1();
  void a2() { }
}
class B extends A {
  void a1() { }
  void a2() { }
}
class C extends B { void c1() { } } and:
A x = new B(); C y = new C(); A z = new C(); What are four valid examples of polymorphic method calls?
Go to Question: