adplus-dvertising
frame-decoration

Question

Which of the following are true for prototype pattern?

a.

A clone is a copy of an object

b.

When values stored in an entity (including references) are reproduced in the copy, the copy operation is said to be shallow

c.

In contrast, a copy operation is deep when copies are made of all referenced entities in the original composite, and references to the new entities are placed in the copy

d.

All of the mentioned

Answer: (d).All 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 true for prototype pattern?