The prototype mode is used to create the current copy of an object. A copy refers to the memory space of a deep copy, which is generally used for complex objects.
Prototype
Http://zh.wikipedia.org/wiki/original Mode
The prototype mode is a type of creation mode. It is characterized by "copying" an existing instance to return a new instance, rather than creating a new instance. The copied instance is what we call the prototype, which can be customized.
The prototype mode is mostly used to create complex or time-consuming instances, because in this case, copying an existing Instance makes the program run more efficiently; or creating the same value, just named different similar data.
Prototype mode in FLC
The datatable. Clone method is a typical prototype application. Clone the datatable structure, including all datatable architectures and constraints.
Datatable table = new datatable (); //... datatable clonetable = table. Clone ();//..
Table and clonetable can be modified separately without affecting each other.