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

write a program to find 2^n+1 ?

1809


What is polymorphism and example?

793


Whats oop mean?

799


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2291


What is meant by multiple inheritance?

959


What is encapsulation with real life example?

798


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2382


What are the 3 principles of oop?

847


What is object in oop?

889


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2232


What is the purpose of enum?

783


What is a class oop?

772


Why multiple inheritance is not allowed?

837


What is polymorphism explain?

993


Is abstract thinking intelligence?

810