Hi all
I'm trying to creating a class with a Private Constructor but when I try to activate the class I get the following untranslated error;
Sichtbarkeit des Konstruktors darf nicht spezieller als die
Sichtbarkeit der Instanzerzeugung (CREATE-Zusatz) sein.
Using Google this translates to;
Visibility of the constructor can not be specific as the
Visibility of the production instance (CREATE additional).
I interperate it to mean that I cannot set the visibilty of the Constructor as private. Certainly if I change the visibility to public then the error goes away.
In the book "Next Generation ABAP Development" (by Rich Heilman and Thomas Jung) there are examples that do use Private constructors just like I am trying to do. At present I cannot see what the difference is between my class and the ZCL_CS_COURSE in the book so where have I gone wrong - any ideas?
TIA
Gareth