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
What is the difference between a type-specific template friend class and a general template friend class?
What is a binary file? List the merits and demerits of the binary file usagein C++.
What is static class data?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
If I is an integer variable, which is faster ++i or i++?
What is a loop? What are different types of loops in c++?
Why was c++ made?
What information can an exception contain?
How does class accomplish data hiding in c++?
Can member data be public?
Is it possible to write a c++ template to check for a function's existence?
What is c++ manipulator?
What is the basic difference between C and C++?
Explain the difference between abstract class and interface in c++?
Difference between inline functions and macros?