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){...}
Answer Posted / 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 View All Answers
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is abstraction example?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
When not to use object oriented programming?
Why is oop useful?
why reinterpret cast is considered dangerous?
explain sub-type and sub class? atleast u have differ it into 4 points?
Are polymorphisms mutations?
Can destructor be overloaded?
What is oops in simple words?
What is inheritance in simple words?
write a program to find 2^n+1 ?
Why do we use polymorphism?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is object in oops?