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 |
Can a varargs method be overloaded?
what is the application of oops?
What does enum stand for?
Name an advantage of array over linked list?
24 Answers GML, IBM, Software Solutions,
What is polymorphism what are the different types of polymorphism?
What is the point of polymorphism?
We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ball with only 3 possible weighing attempts?
Write a program to find out the number of palindromes in a sentence.
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Can abstract class have normal methods?
How to hide the base class functionality in Inheritance?
Which type does string inherit from?