Difference between Overloading and Overriding?

Answer Posted / janet

1. In overloading,there is a relation ship between methods
available in the same class where as in overridding,there
is relationship between a super class method and subclass
method.
2. overloading doesn't block inheritence from the
superclass where as overridding blocks inheritence.

3. in overloading,seperate methods share the same name
where as in overridding,subclass methods replaces the
superclass.

4.overloading must have different method signatures where
as overriding must have same signature.

Is This Answer Correct ?    482 Yes 79 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do we have to use initialization list in spite of the assignment in constructors?

794


Define virtual constructor.

850


Explain differences between alloc() and free()?

839


Can notepad ++ run c++?

778


Can we get the value of ios format flags?

896


What are the various operations performed on stack?

857


What are static type checking?

854


What do you mean by translation unit?

868


What will happen if a pointer is deleted twice?

984


Why is null pointer used?

935


What is ifstream c++?

843


What is c++ array?

828


Explain explicit container.

884


What are features of c++?

875


What is an overflow error?

888