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