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 / 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 |
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....
What is encapsulation in ict?
Can we create object of abstract class?
Difference between realloc() and free?
What is function overloading and operator overloading?
What is polymorphism ? Explain with examples
Do you know about multiple inheritance?
Can we call a base class method without creating instance?
What is a class?
32 Answers Infosys, TCS, Thylak,
What is the difference between the C & C++?
What is constructor in oop?
What is the difference between const int *ptr and int const *ptr???