Question OOP-POLY-0050
MediumWhich pair is an overload, not an override?
- A.
speak() in Animal and in Dog
- B.
add(int a, int b) and add(double a, double b) in the same class
- C.
draw() in Shape and draw() in Circle with the same signature
- D.
toString() in Object and in Student
Sign up free to see the answer and a step-by-step explanation.