Login
Remember
Register
Q&A
Questions
Ask a Question
How to prevent cloning of a singleton object?
Home
>
Education
>
How to prevent cloning of a singleton object?
0
votes
asked
Nov 7, 2020
in
Education
by
Editorial Staff
(
55.6k
points)
How to prevent cloning of a singleton object?
#singleton-object
Facebook
Twitter
LinkedIn
Email
Add Answer
1
Answer
0
votes
answered
Nov 7, 2020
by
Editorial Staff
(
55.6k
points)
How to prevent cloning of a singleton object?
Throw exception within the body of clone() method.
Related questions
0
votes
1
answer
Can we create a clone of a singleton object?
asked
Nov 7, 2020
in
Education
by
Editorial Staff
(
55.6k
points)
#singleton-object
0
votes
1
answer
What is the use of git fork? How is forking different from cloning?
asked
Nov 4, 2020
in
Technology
by
JackTerrance
(
1.7m
points)
interview-question-answer
technology-questions-answers
0
votes
1
answer
How can you create Singleton class in java?
asked
Nov 7, 2020
in
Education
by
Editorial Staff
(
55.6k
points)
#singleton-class-java
0
votes
1
answer
How do I prevent a class from being allocated via the 'new' operator? (I'd like to ensure my RAII class is always allocated on the stack.)
asked
Mar 17
in
Education
by
JackTerrance
(
1.7m
points)
c
operator-overloading
0
votes
1
answer
How do I prevent a class from being allocated via the 'new' operator? (I'd like to ensure my RAII class is always allocated on the stack.)
asked
Mar 17
in
Education
by
JackTerrance
(
1.7m
points)
c
operator-overloading
...