Question: The rule(s) for creating a Singleton class is to ensure that it has the following: A . A static field containing its only instance. B
The rule(s) for creating a Singleton class is to ensure that it has the following: A . A static field containing its only instance. B . A private constructor; A static field containing its only instance. C . A private constructor;A static field containing its only instance; A static factory method for obtaining the instance.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
