difference between overloading and overridding

Answer Posted / pramod

overloading :- There are two functions which have the
same name and they differ only either in their argument
number or argument type like myfunction(int a) and
myfunction(float a).

Overriding :- There are two functions with the eaxtly same
name,same type. One of these functions is in base class and
one will be in derived class

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism used for?

772


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

2041


2. Give the different notations for the class.\

1803


What is the difference between static polymorphism and dynamic polymorphism?

842


What type of loop is a for loop?

858


Can you inherit a private class?

840


What is this pointer in oop?

789


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1891


Write a program to reverse a string using recursive function?

2026


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3825


What do you mean by Encapsulation?

805


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

2305


write a program to find 2 power of a 5digit number with out using big int and exponent ?

2130


What is the main purpose of inheritance law?

940


What is difference between polymorphism and inheritance?

808