0
How to prevent cloning of a singleton object?

Open 1 Answers 34 Views Education

How to prevent cloning of a singleton object?

1 Answer

0

How to prevent cloning of a singleton object?

Throw exception within the body of clone() method.

by (53.7k points)
...