2012 Jul 04 6:16 PM
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
2012 Jul 05 7: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
2012 Jul 05 3:29 PM
Hi Uday,
Private Class U cannot create object from outside.
Regards
Babu
2012 Jul 05 3:29 PM
Hi Uday,
Private Class U cannot create object from outside.
Regards
Babu
2012 Jul 05 3:29 PM
Hi Uday,
Private Class U cannot create object from outside.
Regards
Babu
2012 Jul 06 7: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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |