difference between overloading and overridding

Answer Posted / k.senthil arasur sathyamangala

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 ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can enum be null?

784


What is ambiguity in inheritance?

862


Why is there no multiple inheritance?

783


What are the important components of cohesion?

769


Where is pseudocode used?

764


How do you explain polymorphism?

820


Whats oop mean?

799


What is the example of polymorphism?

766


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2324


What are classes oop?

804


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

2003


What is destructor oops?

861


explain sub-type and sub class? atleast u have differ it into 4 points?

2058


What is inheritance write a program to show use of inheritance?

891


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1911