Difference between over loading and over ridding?

Answer Posted / shashikanth c r

Overloading is nothing but compile time allocation where we
will come to know which method will be called. In this
method we can overload either a method or even operators
too.

Overridding is nothing but run time allocation. We being
programmers can let the program to deside which method
should be called during the execution. During comp time,
we will never come to know which object will call which
method. This can be achived by using VIRTUAL keyword.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class in oop?

614


What is encapsulation selenium?

559


What is polymorphism explain its types?

692


What are the components of marker interface?

611


program for insertion ,deletion,sorting in double link list

2285






What is destructor give example?

610


2. Give the different notations for the class.\

1596


What is abstraction and encapsulation?

580


What are the features of oop?

644


any one please tell me the purpose of operator overloading

1975


Why multiple inheritance is not possible?

608


Get me an image implementation program.

1567


Can a varargs method be overloaded?

629


What is class and example?

575


What is oops in programming?

572