What is function overloading?,describe it with the example.
Answer Posted / jyoti lohani
A class having same name with the same function name but
having different parameter . the paramerter are sequence of
parameter, number of parameter, & types of parameter.
that's call function overloading.
EX:- public int fun(int a,int b);
public int fun(string a, string b)
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is difference between abstraction and encapsulation?
Plese get me a perfect C++ program for railway/airway reservation with all details.
Can main method override?
What causes polymorphism?
What does and I oop mean in text?
What is polymorphism explain its types?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
How do you achieve polymorphism?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
what is the sylabus for priliminaries?
Why is abstraction used?
What is destructor example?
Which language is not a true object oriented programming language?
What is persistence in oop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box