Difference between Overloading and Overriding?
Answer Posted / ravi kolate(ty)
overloadind is the method in which have same function name
and return type but it has different number of passing
argument.
float a(float a,int a)
{
float a(float num)
{
//code
}
}
while in overriding method their are same function name
same return type and same parameter passing passing to
parent class to child class.
in java their is tedius problems in method overriding ,to
solve problem java introduce a interface.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is a class template?
What are static member functions?
Explain what you mean by a pointer.
What is flag in computer?
State the difference between delete and delete[].
Write a program to show polymorphism in C++?
What is function overloading c++?
What is lazy initialization in c++?
Who was the creator of c++?
What is a type library?
How the programmer of a class should decide whether to declare member function or a friend function?
What is the difference between method overloading and method overriding in c++?
Explain register storage specifier.
Is sorted c++?
Do you know about latest advancements in C++ ?