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?
What is multilevel inheritance explain with example?
What is constructor in oop?
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.
Can bst contain duplicates?
What is for loop and its syntax?
Can we define a class within the interface?
What is a superclass in oop?
What is pointer in oop?
Why do we use encapsulation in oops?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is polymorphism in oops with example?
What is encapsulation in simple terms?
Can a destructor be called directly?
What is encapsulation with real life example?