Components of Classes,,,,

The content of a class is made up of its components. The components define the attributes of the

objects of the class. Each component is declared in the class definition, in one of threevisibility areas, which define the interfaces that can be seen from outside the class. All components are visible within a class. All components are stored in the same namespace - which means that the name of every component in the class must be unique.

There is a difference between instance-specific components, which are available for each object, and cross-instance components, which are available only once per class. Cross-instance components are known as instance components, whereas cross-instance components are known as static components.

In ABAP Objects, the following components classes can be used to define the following components. Since any component defined in a class can also be defined in an interface, this description also applies to interfaces.

You can access components of classes from within or, depending on visibility, from outside the class. When accessing a class from outside, you must use selectors.

The components are:

Attributes
Methods
Events
Types and Constants