Introduction to OOP Chapter 5: Messages Instances and Initialization: next previous audio real text

Object Creation

In most programming languages objects must be created dynamically, usually using the new operator:

	PlayingCard aCard; // simply names a new variable

	aCard = new PlayingCard(Diamond, 3); // creates the new object

The declaration simply names a variable, the new operator is needed to create the new object value.
Intro OOP, Chapter 5, Slide 07