in Education by

How to prevent cloning of a singleton object?

Please log in or register to answer this question.

1 Answer

0 votes
by

How to prevent cloning of a singleton object?

Throw exception within the body of clone() method.

Related questions

0 votes
asked Mar 23, 2022 in Education by JackTerrance
0 votes
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
asked May 30, 2022 in Education by JackTerrance
...