+1 vote
in Software Architecture by (75.2k points)
Which of the following are correct for copy constructor?

(a) A copy constructor is a constructor that takes an instance of its class as an argument and creates a clone of its argument

(b) A copy constructor must be used when a final field must be set in creating the clone because only a constructor can set a final field

(c) All of the mentioned

(d) None of the mentioned

I have been asked this question during an interview.

My query is 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)
Right option is (d) None of the mentioned

To explain: 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
...