Lecture overview -- Keyboard shortcut: 'u'  Previous page: Instantiation of classes in C# -- Keyboard shortcut: 'p'  Next page: Constructors in C# -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Classes and Objects - slide 26 : 29

Initialization of objects

Initialization is the process of ascribing initial values to the instance variables of an object

It is very important that a newly born object is initialized to a healthy citizen in the population of objects

Explicit initialization is always preferred over implicit initialization

Always initialize instance variables in constructors