Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

static methods

Former Member
0 Likes
894

Hi,

Can we redefine static methods.

9 REPLIES 9
Read only

Former Member
0 Likes
873

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

Read only

uwe_schieferstein
Active Contributor
0 Likes
873

Hello Sandeep

Static methods cannot be redefined.

Regards

Uwe

Read only

Former Member
0 Likes
873

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

Read only

Former Member
0 Likes
873

Dear Sandeep ,

We cannot redine static methods.

Thanks and Regards ,

Debojyoti Chanda.

Read only

Former Member
0 Likes
873

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.

Read only

Former Member
0 Likes
873

<copy_and_paste_removed_by_moderator>

Edited by: Julius Bussche on Jul 30, 2008 2:57 PM

Read only

Former Member
0 Likes
873

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

Read only

former_member787646
Contributor
0 Likes
873

Hi

NO, Static Methods cannot be redefined.

Hope it helps.

Murthy

Read only

Former Member
0 Likes
873

hi,

Static Methods cannot be redefined.

Regards

Sumit Agarwal