AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - ABAP Release News → News for ABAP Release 7.0 and its EhPs → News for ABAP Release 7.0, EhP2 →
ABAP Objects in ABAP Release 7.0, EhP2
Declaring Instance Constructors
From ABAP release 7.0, EhP2, the statement METHODS can be used to declare an
instance constructor in all
visibility sections, whose instantiability is more general than
or equal to that specified in the addition CREATE
of the statement CLASS DEFINITION.
Until now, this was only possible with the public visibility section (this modification was also transported to ABAP release 7.0).
C Destructor
From ABAP release 7.0, EhP2, more than one attribute can be passed in the C destructor when SYSTEM-CALL is used.
Constants in Class Pools
From ABAP release 7.0, EhP2, local program constants can be declared in a class pool. The private components and methods of the global class can access these constants.