[ABAP-OO] How to instantiate an attri. type Class Object from an Interface?
basically, I have an INTERFACE.
This Interface contains an instantiate attribute TYPE OBJECT.
I would like to know, how can I instantiate this attribut in my concret utility ZCL_TEST class?
I have this error:
Thank you very much in advance.
Looks like you are trying to instantiate (a instance attribute) within the class constructor which is static. Can you try the same with in constructor or any other instance method?