adplus-dvertising
frame-decoration

Question

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 subclassed, 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: (d).All of the internship

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What are the drawbacks for singleton class?