Difference between Overloading and Overriding?

Answer Posted / stephen-pipes afrifa

Overloading: The function name is the same but the
parameters are different or have different signature

Overriding: The member function having the same name and
types of parameters as function in the base class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers used for c++?

567


What is a .lib file in c++?

559


How important is c++?

526


What are manipulators used for?

601


Describe about storage allocation and scope of global, extern, static, local and register variables?

723






What is auto used for in c++?

560


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

535


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

564


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

2433


What are references in c++?

647


What is dev c++ used for?

601


What's the most powerful programming language?

581


What are the storage qualifiers?

659


Is vector a class in c++?

589


What are enumerations?

650