answersLogoWhite

0


Best Answer

Overloading and overriding do similar things but they are distinct.

When you override a function, you are providing a new implementation of a function that was inherited from a base class. The signature of an override must be covariant with the base class signature.

Overloading means to create several functions with the same name within the same namespace but with different signatures.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between over-loading and over-riding in cpp?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between the header file and the preprocessor directive in programming language cpp?

pata nhn


What is the difference between bopp and cpp film?

CPP film is a plastic extrusion made of polypropylene. BOPP films are bi-directional polypropylene. CPP film is high gloss, has good transparency, is heat resistant, and water resistant.


Major difference between java and cpp?

CPP typically stands for the C PreProcessor, which does macro expansion on C source code. What I suspect you want to know are the differences between C++ and Java. See the links below for more information on that topic.


How does a compiler interpret the difference between c and c plus plus?

from the extension of your file.If it has an extension of .cpp then it is a c++ programIf it's extension is .c, then it is a C program.


What do the initials CBF and CPP stand for?

CPP


When was CPP Group created?

CPP Group was created in 1980.


When was CPP Studios Event GmbH created?

CPP Studios Event GmbH was created in 1983.


CPP Program for Implementing Knuth-morris-pratt pattern matching algorithm?

what is the pure algorithm instead of cpp program?


What is CPP Studios Event GmbH's population?

CPP Studios Event GmbH is a company, not a population. It does not have a population as it is an entity, not a community or group of people. Can I help you with anything else?


When did CPP start?

I believe it was in 1967


What is a shorted CPP switch?

Bu11sh1+


Is a military pension clawed back at 65 if you take cpp at age 60?

No, a military pension is separate from CPP. Your military pension will not be clawed back if you choose to take CPP at age 60. However, your CPP may be reduced if you start taking it before the age of 65, but this will not affect your military pension.