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
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
Do you know about C++ 11 standard?
Should a constructor be public or private?
Explain the advantages of using friend classes.
What is DlgProc?
How do I run c++?
What is the purpose of extern storage specifier?
What is an object in c++?
Is set c++?
What is c++ programming language?
Can char be a number c++?
What is the full form of ios?
Briefly describe a B+ tree. What is bulk loading in it?
What are the advantages of inheritance in c++?
What is the v-ptr?