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

Access to protected method is ot allowed

Former Member
0 Likes
652

Hi,

there is class with a protected method. I get the message

"Access to protected method is ot allowed"

How must such methods be called if they are protected ?

Regards

sas

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
565

SEARCH....

Hi,

there is class with a protected method. I get the message

"Access to protected method is ot allowed"

How must such methods be called if they are protected ?

Regards

sas

2 REPLIES 2
Read only

amit_khare
Active Contributor
0 Likes
566

SEARCH....

Read only

matt
Active Contributor
0 Likes
565

Erdem, please try to post in the correct forum. ABAP Objects questions belong in this forum, not general.

Second, Amit Khare is correct. The concept of Public/Protected/Private methods and attributes is not limited to ABAP Objects. It is a common concept to most object oriented programming languages. But if your read the ABAP Help on the appropriate keywords, then it is explained very clearly.

matt