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 destructor oops?
write string class as your own class in java without using any built-in function
Why it is called runtime polymorphism?
What is polymorphism programming?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is an example of genetic polymorphism?
What is difference between inheritance and polymorphism?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What are the 5 oop principles?
what type of question are asked in thoughtworks pair programming round ?
class type to basic type conversion
What are the advantages of polymorphism?
What is the purpose of polymorphism?
What is interface in oop?
Can we create object of interface?