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
why reinterpret cast is considered dangerous?
Why multiple inheritance is not allowed?
What is meant by oops concept?
What is cohesion in oop?
What are different oops concepts?
What is abstraction example?
what is different between oops and c++
Why is encapsulation used?
What is new keyword in oops?
How do you achieve polymorphism?
Why is static class not inherited?
What do you mean by Encapsulation?
What is class and example?
Are polymorphisms mutations?
What is a class oop?