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 are the events occur in intr activated on interrupt vector table
what is a class? Explain with an example.
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
Is c++ still in demand?
What do you mean by a template?
Explain Memory Allocation in C/C++ ?
What is runtime polymorphism in c++?
What is #include cmath?
Why do we use double in c++?
If a header file is included twice by mistake in the program, will it give any error?
Is c++ a software?
Describe public access specifiers?
What is ios :: in in c++?
Write a code/algo to find the frequency of each element in an array?
Why is c++ awesome?