adplus-dvertising
frame-decoration

Question

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

Answer: (d).None of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following are correct for copy constructor?