Question OOP-POLY-0026
EasyWhich of these is a valid overload of int add(int a, int b) in C++ or Java?
- A.
long add(int a, int b)
- B.
int add(int x, int y)
- 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 of these is a valid overload of int add(int a, int b) in C++ or Java?
long add(int a, int b)
int add(int x, int y)
Sign up free to see the answer and a step-by-step explanation.
double add(double a, double b)
int sum(int a, int b)