‎2008 Jan 11 8:34 AM
‎2008 Jan 11 10:59 AM
Hi,
Rediefination is when we the Implememtation of an inherited instance method is changed for the subclass ,without Changing the signature.At the same time the visibility section for the superclass must remain the same. ( therfore REDIFINITION is not possible within PRIVATE SECTION).
When you use REDEFINITION addition you must specify a (new) Implememntation part for the inherited method.As the signature may not be changed , you do not need to define the method parameters and exceptions again.
Regards,
Sathishkumar.V
‎2008 Jan 11 10:59 AM
Hi,
Rediefination is when we the Implememtation of an inherited instance method is changed for the subclass ,without Changing the signature.At the same time the visibility section for the superclass must remain the same. ( therfore REDIFINITION is not possible within PRIVATE SECTION).
When you use REDEFINITION addition you must specify a (new) Implememntation part for the inherited method.As the signature may not be changed , you do not need to define the method parameters and exceptions again.
Regards,
Sathishkumar.V
‎2008 Jan 11 12:39 PM
Abstract methods need to be redefined and thereby implemented in the subclass and then you need to include the corresponding redefinition statement in the DEFINITION part of the subclass.
Abstract class has at least one method that doesn't have an implementation. But may have several methods.
Kanagaraja L