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 the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What is name hiding in c++?
Give 10 points of differences between C & C++.
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
Do vectors start at 0?
why is c++ called oops? Explain
If all is successful, what should main return a) 0 b) 1 c) void
What is an inline function in c++?
Explain dangling pointer.
What are associate containers?
Describe friend function & its advantages.
Using a smart pointer can we iterate through a container?
Explain polymorphism?
How many types of classes are there in c++?
What is purpose of new operator?