I’ve seen Singleton design pattern represented like below. Always with just getInstance() method.
My doubt is: once I get the instance of the object I need, if I would like to modify it don’t I need to add other methods to the Singleton class? Like setField( Type something) ? Or is against the pattern? In this case which is the right way to get a single instance and modi..