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

How does c++ structure differ from c++ class?

848


Why is the function main() special?

871


What are the differences between malloc() and calloc()?

881


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

771


Why the usage of pointers in C++ is not recommended ?

1127


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

888


What is algorithm in c++ programming?

811


Can c++ do everything c can?

827


Explain the scope of resolution operator.

868


What is c++ virtual inheritance?

843


Define macro.

845


What is a vector c++?

854


Show the application of a dynamic array with the help of an example.

880


What is the arrow operator in c++?

776


When should we use multiple inheritance?

824