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.
double add(double a, double b)
- D.
int sum(int a, int b)
Sign up free to see the answer and a step-by-step explanation.