Introduction to OOP: Chapter 4: Messages, Instances, and Initialization: [next] [previous] [audio] [real] [text]

Creation and Initialization

Many OOP languages (Smalltalk, C++, Java, Objective-C) provide a feature that ties together object creation and initialization. This thus avoids a pair of twin problems:

We will discuss two mechanisms, class (factory) methods and constructors.

Intro OOP, Chapter 4, Slide 10