Difference between Overloading and Overriding?

Answer Posted / bharathi

overloading is a process of using the same name function in
different places in the same class it can make useful of
reusability and to save the memory to need not write entire
program where we want.here one thing is wirh or without
inheritance we can use overloading.
whereas overriding means having same name and same acess
specifiers,same returntype,same modifiers as same 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

write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2253


What is diamond problem in c++?

542


Which software is best for c++ programming?

580


Which software is best for coding?

574


Why is c++ still used?

607






Is map thread safe c++?

634


Explain Memory Allocation in C/C++ ?

640


How do you establish an is-a relationship?

623


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

565


Difference between pointer to constant and constant pointer to a constant. Give example.

648


How is objective c different from c++?

796


What is searching?

657


What is type of 'this' pointer? Explain when it is get created?

591


How do you save a c++ program?

559


When should we use container classes instead of arrays?

586