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

Hi,..

Former Member
0 Likes
908

how to call private class public method in that there is no get_instance method

Moderator message: Interview type of question not allowed, Also please use proper subject while posting. Rephrase the question clearly and post it again properly ( Note: not as a one-liner )

Message was edited by: Kesavadas Thekkillath

how to call private class public method in that there is no get_instance method

Moderator message: Interview type of question not allowed, Also please use proper subject while posting. Rephrase the question clearly and post it again properly ( Note: not as a one-liner )

Message was edited by: Kesavadas Thekkillath

5 REPLIES 5
Read only

Former Member
0 Likes
871

Hi Babu,

      

First you need to create a an object of the class like

CREATE OBJECT class_name

Now using that object you can call the method

CALL METHOD class_name->method_name

Hope it helps.

Regards

Uday

Read only

0 Likes
871

Hi Uday,

Private Class U cannot create object from outside.

Regards

Babu

Read only

0 Likes
871

Hi Uday,

Private Class U cannot create object from outside.

Regards

Babu

Read only

0 Likes
871

Hi Uday,

Private Class U cannot create object from outside.

Regards

Babu

Read only

Former Member
0 Likes
871

Hi,

Make that private class public method as static and call from outside using => operator.

You can't instantiate the private class from application.

Regards,

Manjesh.