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 my own zero-argument manipulator that should work same as hex?

573


Define pointers?

598


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

949


What is the difference between global variables and static varables?

561


What are pointer-to-members in C++? Give their syntax.

613






What is std :: endl?

591


What are punctuators in c++?

642


Difference between strdup and strcpy?

642


How do I download c++?

564


What are advantages of using friend classes?

625


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

545


What relational operators if statements in c++?

635


What are the classes in c++?

634


In a function declaration what does extern means?

589


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

602