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

nested class

Former Member
0 Likes
845

can we nested class in abap?

2 REPLIES 2
Read only

Former Member
0 Likes
550

no its not possible ....but ABAP Objects makes this possible by using interfaces. .... When you implement a nested interface in a class ......

reward points if it is usefull......

Read only

Sm1tje
Active Contributor
0 Likes
550

As an addition to Subu's answer.

It is however possible (beside using interfaces) to use object references to other class or even to instantiate other classes from within your own class.

And indeed, it is not possible to do this (nest classes):

class lcl_class definition.

class lcl_class1 definition.

endclass.

endclass.