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
How do you traverse a btree in backward in-order?
What is a syntax in c++?
Explain what data encapsulation is in c++?
How can I learn c++ easily?
What do you mean by delegate? Can a user retain delegates?
what is C++ objects?
How does the copy constructor differ from the assignment operator (=)?
Describe protected access specifiers?
What is the difference between the functions rand(), random(), srand() and randomize()?
What does extern mean in a function declaration in c++?
What is a constant reference?
What are the various operations performed on stack?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
Differentiate between structure and class in c++.
Explain the differences between private, public and protected and give examples.