Holding a static reference attribute to the single instance.
Providing a public static factory (get_instance) that returns the single instance.This aligns with the ABAP Cloud guidance on architecture-driven, upgrade-stable design (strict language, typed APIs, static checks).
(C) is wrong: the factory method must be public so callers can get the instance.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit