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 encapsulation selenium?

750


What is polymorphism and its types?

802


Why is abstraction needed?

755


Why do while loop is used?

767


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1634


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

4326


What do you mean by overloading?

793


What is data binding in oops?

822


What are different oops concepts?

772


State what is encapsulation and friend function?

936


What is the renewal class?

2409


What is a superclass in oop?

905


what is different between oops and c++

2187


How long to learn object oriented programming?

808


What is encapsulation in oops?

755