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

What is the significance of classes in oop?

590


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

3557


Can static class have constructor?

587


What are the three main types of variables?

602


What are the types of abstraction?

560






Why polymorphism is used in oops?

586


What is persistence in oop?

677


What are classes oop?

600


What is encapsulation in simple terms?

542


Get me a number puzzle game-program

1696


Why do we use polymorphism in oops?

585


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4248


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

2038


What is oops?what is its use in software engineering?

559


Is oop better than procedural?

576