Difference between over loading and over ridding?

Answer Posted / sri

overloading means when u define more than one function with
same name but different arguments and return type.it is
compiletime allocation
overriding means when we define more than one function with
same name,same arguments.it mainly used in inheritance
concept.it is runtime allocation

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why multiple inheritance is not possible?

812


Why multiple inheritance is not allowed?

837


Whats oop mean?

799


What are the three parts of a simple empty class?

1781


write a program that takes input in digits and display the result in words from 1 to 1000

2204


how to get the oracle certification? send me the answer

1916


What is polymorphism what is it for and how is it used?

789


Get me an image implementation program.

1755


What is difference between inheritance and polymorphism?

794


What language is oop?

788


What are objects in oop?

849


What is polymorphism explain?

993


What are the components of marker interface?

813


What is polymorphism give a real life example?

777


What is multilevel inheritance?

972