Component visibility in ABAP Objects

Go down

Component visibility in ABAP Objects

Post  Admin on Sat Mar 31, 2012 11:15 pm


This is one of the most important concepts of OOP, here we provided with the flexibility to
assign visibility of the class components. But before we proceed any further lets clear the
fact what do we mean by visibility of class components?

The components of a class can only be accessed through the objects but declaring the class
components in different domains, which are defined as Public Private and Protected, these
domains control the accessibility.

Public components of a class can be accessed by the objects of a class components in the
public domain are totally visible outside the class other components within the class can also
access them.

Private components cannot be accessed by the objects of the class they can only be accessed
by the members within the class i.e. any member function within the class can access the
private members thus from the point of visibility no private components are visible outside
class. The sequence of declaring the components are public protected and private.

Admin
Admin

Posts : 92
Join date : 2012-01-26

http://mysaplab.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum