What is function overloading?,describe it with the example.
Answer Posted / prajapati paresh
the function having the same name but different argument or
different return value is called function overloading
for e.g void sum(int a,intb);
void sum(int a,int b,int c);
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is interface? When and where is it used?
What is polymorphism and its types?
What are objects in oop?
What are the 5 oop principles?
What are the features of oop?
What is encapsulation in simple terms?
What is new keyword in oops?
What is abstraction in oop with example?
What is encapsulation in ict?
What is the importance of oop?
What is the highest level of cohesion?
what are the ways in which a constructors can be called?
What is a superclass in oop?
What is constructor in oop?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?