Dynamic Model

    Dynamic model is a dynamic object programming method, it can create and modify objects at run time, in order to achieve the dynamic creation and modification of system functions.

Theory

  1. Objects can be created from the class.
  2. Class is also the object.
  3. The class of any class(as object) is exists, here call it MetaClass.
  4. Summary, therefore all objects can be created by MetaClass.

Example

 

 

Copyright ©  2007-2014 XWorker.org  版权所有

沪ICP备08000575号