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
When there is a global variable and local variable with the same name, how will you access the global variable?
What is an incomplete type in c++?
What is data abstraction? How is it different from data encapsulation?
Can non graphic characters be used and processed in C++?
What are arrays c++?
Why is c++ not purely object oriented?
What are structs in c++?
Write about the access privileges in c++ and also mention about its default access level?
What is the benefit of c++?
Explain differences between new() and delete()?
Why should we use null or zero in a program?
Is c++ a good first language to learn?
Do class method definitions?
Why is c++ difficult?
What is c++ try block?