+1 vote
in Software Architecture by (75.2k points)
Any class using the built-in cloning mechanism is supposed to do which of the following?

(a) Implement the Cloneable interface

(b) Define a concrete public or protected clone() operation

(c) In the clone() operation, obtain a new object by calling super.clone()

(d) All of the mentioned

I have been asked this question during an interview.

I would like to ask this question from The Prototype Pattern, Reactor Pattern and Command Pattern topic in chapter Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

0 votes
by (46.2k points)
The correct choice is (d) All of the mentioned

To elaborate: All of the mentioned are true.

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...