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
If a function doesn’t return a value, how do you declare the function?
What does new in c++ do?
Explain function overloading
daily Routine of father
What should main() return in c and c++?
What is the purpose of the "delete" operator?
Can you please explain the difference between using macro and inline functions?
What is the use of bit fields in structure declaration?
What is the difference between while and do while loop?
What is the most useful programming language?
What is difference between c++ and c ++ 14?
What is encapsulation in c++ with example?
What is the difference between a template and a macro?
what is scupper?
Which is best c++ or java?