Object Oriented Programming (OOPs)

© examsiri.com
Question : 45 of 72
 
Marks: +1, -0
Given:
1. class SuperClass {
2.   public A getA() {
3.    return new A();
4.   }
5. }
6. class SubClass extends SuperClass {
7.   public B getA(){
8.    return new B();
9.  }
10. }

Which statement is true?
Go to Question: