COBCH1844 class-name is inaccessible due to its visibility attributes

The visibility attributes of the specified class indicate that it cannot be used in the current context.

Resolution:

Correct the code; then recompile.

Example:

In the following example, display new is devined as Outer+Middle, but the class NS.Outer references Inner.

       class-id NS.Prog.
       method-id main(args as string occurs any) static.
       procedure division.
               display new Outer+Middle()
       end method.
       end class.

       class-id NS.Outer.
           class-id Middle private.
               class-id Inner protected.
               end class.
           end class.
       end class.