Ansicht
Dokumentation

ABENOBJECT_REFERENCE_TYPE - OBJECT REFERENCE TYPE

ABENOBJECT_REFERENCE_TYPE - OBJECT REFERENCE TYPE

ROGBILLS - Synchronize billing plans   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Object References

Object references can point to instances of classes. The static type of their reference variables is either a class or an interface. Both types can be used to create objects with the statement CREATE OBJECT.

  • Class reference variables allow access to all visible components of a class.

If an attempt is made to access an instance attribute using an object reference variable that contains the null reference, an uncatchable exception is raised. A catchable exception is raised when an instance method is called.

Object references are always heap references.

Note

For more information, see Object References.

Example

Inline declaration of an object reference variable out with the static type IF_DEMO_OUTPUT on the left side of an object of the class CL_DEMO_OUTPUT created using its factory method NEW. Calling of the method DISPLAY using the object component selector.






Vendor Master (General Section)   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 1681 Date: 20240426 Time: 100330     sap01-206 ( 30 ms )