javinpaul·Follow1 min read·May 27, 2019--ListenShareThis is another way to prevent instantiation of the class, used along with factory pattern and singleton whether you want to ensure that getInstance() or similar method should be used to create an object instead of the constructor.