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 polymorphism? Explain with an example.

48 Answers  


what is object slicing

3 Answers   TCS,


why c++ is a highlevel language

3 Answers   Satyam, Tech Mahindra,


how many types of notations are in java

1 Answers   National University of Modern Languages (NUML),


What are different oops concepts?

0 Answers  






What is encapsulation in simple terms?

0 Answers  


What is difference between class and object with example?

0 Answers  


What are the advantages of inheritance?

26 Answers   IBS, TCS,


Please send ford technologies placement paper 2 my mail id

0 Answers  


sir i want to know which posting to apply since i am BE CSE.. also want to know what are the rounds there for my interview...Expecting for ur valuable answer....

2 Answers  


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

0 Answers  


how to find the largest of given numbers in an array

2 Answers  


Categories