‎2008 Jul 30 8:27 AM
‎2008 Jul 30 8:29 AM
Hi,
YES we can.
But we can not change its Signature. Only we can change the operation defined in it.
However, in case of Static constructure you can change the both.
Regards,
Anirban
‎2008 Jul 30 8:47 AM
‎2008 Jul 30 8:51 AM
Hi!
You cannot redefine the static methods only instance methods can be redefined.
REDEFINITION is when the implementation of an inherited INSTANCE METHOD is changed for the subclass without changing its signature. At the same time, the visibility section for the superclass must remain the same.
Regards
Abhijeet
‎2008 Jul 30 8:54 AM
Dear Sandeep ,
We cannot redine static methods.
Thanks and Regards ,
Debojyoti Chanda.
‎2008 Jul 30 9:03 AM
Hi Sandeep,
There is only one static component per program context. To summarize:
Static Components and Inheritance
A class that defines a public or protected static attribute shares this attribute
with all its subclasses
Static methods cannot be redefined
Static methods cannot be abstract because they cannot be redefined.
Regards,
Muneesh Gitta.
‎2008 Jul 30 9:08 AM
<copy_and_paste_removed_by_moderator>
Edited by: Julius Bussche on Jul 30, 2008 2:57 PM
‎2008 Jul 30 9:41 AM
Hi Sandeep,
yes we can declare static methods using the CLASS-METHODS statement.
They can only access static attributes and trigger static events.
Hope this helps,
Thanks,
Vijay Duvvada
‎2008 Jul 30 10:16 AM
‎2008 Jul 30 10:34 AM