Data Structures and Algorithms
with Object-Oriented Design Patterns in C# |
In this section we state the last axiom needed for the detailed model of the common language runtime. This axiom addresses the time required to create a new object instance:
Axiom The time required to create a new object instance using the new operator is a constant, . This time does not include any time taken to initialize the object.
By applying Axioms , , and , we can determine that the running time of the statement
Int32 ref = new Int32(0);is , where is the running time of the Int32 constructor.