What are the drawbacks for singleton class?
A. Many languages do not allow classes to be values assignable to variables.
B. Singleton classes can be sub-classed, and the singleton factory method can return a sub-class instance
C. Classes can easily replace only single instances
D. All of the internship
Answer:A
What are the drawbacks for singleton class?
A. Many languages do not allow classes to be values assignable to variables. B. Singleton classes can be sub-classed, and the singleton factory method can return a sub-class instance C. Classes can easily replace only single instances D. All of the internship
Explanation: All are the drawbacks for the single ton class.