Difference between Overloading and Overriding?

Answer Posted / swetcha

Overloading - Two functions having same name and return
type, but with different type and/or number of arguments.
Overriding - When a function of base class is re-defined in
the derived class.

Is This Answer Correct ?    850 Yes 105 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a c++ class?

608


How to declare an array of pointers to integer?

572


What is low level language in simple words?

549


Are vectors passed by reference c++?

509


Keyword mean in declaration?

590






When do we run a shell in the unix system?

553


Can we make copy constructor private in c++?

584


Why do we use pointers in c++?

580


What is virtual function? Explain with an example

579


What is the main purpose of overloading operators?

582


What is name hiding in c++?

603


What is the sequence of destruction of local objects?

547


What are the five basic elements of a c++ program?

571


What is srand c++?

566


Which is best c++ or java?

604