Answer Posted / prabhakar
defining a function with a same name with differ in number of arguments r return type r tpe of arguments in one class is called funstion overloading.
for example
class base
{
public:
fun(int a,int b);
fun(char a,char b);
}
above two functions are diffrer in type of arguments.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a superclass in oop?
Where You Can Use Interface in your Project
what are the realtime excercises in C++?
can inline function declare in private part of class?
What are the data types in oop?
Why is polymorphism needed?
What is variable example?
Why is polymorphism important in oop?
What language is oop?
What makes a language oop?
Why is there no multiple inheritance?
What is abstraction and encapsulation?
What are the 4 pillars of oop?
What is static modifier?
How do you answer polymorphism?