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

Define a constructor - what it is and how it might be called (2 methods)?

602


Is c++ vector a linked list?

546


How compile and run c++ program in turbo c++?

627


What is using namespace std in cpp?

541


What is the full form of ios?

551






Write about the members that a derived class can add?

564


what is a reference variable in C++?

657


What is null pointer and void pointer and what is their use?

582


Can user-defined object be declared as static data member of another class?

548


What is the difference between a definition and a declaration?

576


Explain the difference between new() and malloc() in c++?

620


an operation between an integer and real always yeilds a) integer result b) real result c) float result

704


Write a C++ Program to check whether a number is prime number or not?

627


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

924


Can a built-in function be recursive?

580