in Design Patterns by
Q:

Can we create a clone of a singleton object?

A - true

B - false

► Click here to show 1 Answer

0 votes
by

true. It is possible to get a clone of singleton object. Throw exception within the body of clone() method to prevent cloning.

Loan/Mortgage
Learn More with Madanswer

Related questions

0 votes
asked Oct 16, 2019 in Design Patterns by DavidAnderson
...