Explain Overriding Polymorphism - oops

          

Overriding Polymorphism

<<Previous   Next>>

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.  

<<Previous   Next>>
 



Write your comment - Share Knowledge and Experience


 

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring