Constructors

The idea of a constructor is an important concept in C++, Java, and Delphi Pascal. The purpose of a constructor is to tie together the two tasks of creation and initialization. This guarantees that every object which is created is also initialized.

We will have more to say about constructors in the next chapter.

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