difference between overloading and overridding

Answer Posted / manish chakravarti

overloading:Two function have same name and same return type
but different type of arguments used.


overriding:Two function have same name and same arguments
used but that function defined in a base class redefined in
a derived class

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i got a backdoor offer in process global,Bangalore..Can i work with it?

2322


What is constructor overloading in oop?

599


Explain virtual inheritance?

680


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1388


What is overloading and its types?

610






Can static class have constructor?

582


what is the 3 types of system development life cycle

2429


Who invented oop?

647


What is encapsulation with real life example?

566


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

940


What is abstraction example?

614


Is abstract thinking intelligence?

590


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1614


How can you overcome the diamond problem in inheritance?

763


What are the features of oop?

630