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

What is variable example?

0 Answers  


what is the 3 types of system development life cycle

1 Answers  


Is react oop?

0 Answers  


What is abstraction?

9 Answers  


What is polymorphism? Explain with an example.

48 Answers  






explain dynamic binding by drowing

2 Answers   Cognizant,


Can destructor be overloaded?

0 Answers  


What does the keyword "static" mean?

4 Answers   TCS,


whats the difference between c and c++

7 Answers   Syntel,


explain the concepts of oops?

1 Answers  


How can i write a code in c# to take a number from the user and then find all the prime numbers till the number entered by the user.

4 Answers   NIIT, TCS,


What is encapsulation?

17 Answers   TCS,


Categories