Difference between Overloading and Overriding?
Answer Posted / kunal
Overloading - Two or more functions having same name but
different siganture(i.e arguements or return types) for eg.
we have a function named as area then
area();,float area();,area(float a,float b);,float area
(float a,float b);
Overriding - When a function of base class is re-defined in
the derived class.for eg.
base class
{
area(float a,float b);
}
derive class
{
float area();
}
| Is This Answer Correct ? | 42 Yes | 109 No |
Post New Answer View All Answers
Array base access faster or pointer base access is faster?
Who made c++?
Differentiate between an external iterator and an internal iterator?
Incase of a function declaration, what is extern means?
What is a multimap c++?
Is c++ low level?
What are references in c++?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
How are the features of c++ different from c?
What are move semantics?
What is the difference between an external iterator and an internal iterator?
When should overload new operator on a global basis or a class basis?
What are the important differences between c++ and java?
Why do we learn c++?
What is setfill c++?