Skip to Content
author's profile photo Former Member
Former Member

Hi,..

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 05, 2012 at 06:09 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 06, 2012 at 06:28 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.