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

calling the subclass method.

Former Member
0 Likes
801

How to call the method of a sub class which is redefined in the subclass.

1. The super class also has the implementation.

2.No separate instance method is created for the sub class(which creates

instance) .

3.There is a method s_instance of the super class which is static.

4.Therefore the s_instance cannot be redefined.

2 REPLIES 2
Read only

Former Member
0 Likes
501

Hope casting the instance to the subclass will help.

Read only

Clemenss
Active Contributor
0 Likes
501

Hi,

static methods are called using classname=>method_name. There are no instances for static methods. so CALL METHOD super_class=>s_instance...

I do not understand how a method can have the name s_instance ?!

Regards,

Clemens