The present invention discloses a method for creating a dynamic object. More particularly, the present invention relates to a method for creating a dynamic object using an abstract object in an object-oriented programming language having no regulation for dynamic object creation for the abstracted object, and a recording medium recorded with the same. According to the embodiment of the present invention, it is possible to create a real object for an abstract object in a memory in a static object-oriented programming language such as C ++, and to unify a generation operation for all dynamic objects. The method includes a step of allowing a compiler of a computing device to return a pointer of an object by a second keyword; and a step of dynamically allocating a memory for a data type of a first function.
展开▼