Syntax for Dynamic Creation

Dymamic allocation is performed in response to an explicit request. In Smalltalk, Java and C++ this is indicated using the new operator. In Smalltalk this is a message sent to a class, and hence follows the class name. In Java and C++ the class name follows the operator, which can also indicate arguments to be used with the constructor. We will have more to say about the notion of constructor functions shortly.

[audio] [real] Text to accompany slide6, in Chapter 4 of An Introduction to Object-Oriented Programming