Oops - Explain Overriding Polymorphism - Feb 26,
2010 at 21:22 pm by Rajmeet Ghai
Explain Overriding Polymorphism.
Overriding changes the behavior of a class to make it behave different than its
parent class. It is the process of redefining the inherited method or attribute
in a subclass.
Oops - Explain Overriding Polymorphism - Jan
27, 2009 at 22:10 pm by Nishant Kumar
Explain Overriding Polymorphism.
Overriding means changing behavior
of methods of base class in derive class by overriding the base class methods.
If class A is a base class with method 'calculate' and class B inherits class
A, thus derives method 'calculate' of class A. The behavior of 'calculate' in
class B can be changed by overriding it.
|