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.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Polymorphism question
Which pair is an overload, not an override?
speak() in Animal and in Dog
add(int a, int b) and add(double a, double b) in the same class
Sign up free to see the answer and a step-by-step explanation.
draw() in Shape and draw() in Circle with the same signature
toString() in Object and in Student