In OverLoading concept,Why they are not consider return
value and why they are consider only parameters in method?
For ex: public int Add(int a,int b){...}
public String Add(int a,int b){...}



In OverLoading concept,Why they are not consider return value and why they are consider only param..

Answer / brunda r

Because, if at all the return value is same then compiler
should identify the functions by their parameters.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More OOPS Interview Questions

Why multiple inheritance is not allowed?

0 Answers  


Finding of the 4 larger (bigger) numbers from the list like{1245,4587,2145,1163,29987,65783.....}

1 Answers   Wipro,


What is class and example?

0 Answers  


Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??

1 Answers  


What is pure oop?

0 Answers  


Why multiple inheritance is not possible?

0 Answers  


who is the founder of c++?

15 Answers   Hexaware, ONGC,


what is object oriented programming and procedure oriented programming?

3 Answers  


create a c++ program that will accepts 9 inputs using 3 by 3 array.

1 Answers  


Why is oop better than procedural?

0 Answers  


function overridind means and simple program

2 Answers  


How do you define social class?

0 Answers  


Categories