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
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What does and I oop and sksksk mean?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is object and example?
Please send ford technologies placement paper 2 my mail id
What does sksksk mean in text slang?
What is object in oop?
Write a program to reverse a string using recursive function?
What is class in oop with example?
What does no cap mean?
State what is encapsulation and friend function?
What is protected in oop?
Are polymorphisms mutations?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
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?