Lecture overview -- Keyboard shortcut: 'u'  Previous page: Initialization of objects -- Keyboard shortcut: 'p'  Next page: Copy constructors -- 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 27 : 29

Constructors in C#

A constructor is a special method which is called automatically in order to initialize a new instance of a class

bank-account.cs
Constructors in class BankAccount.
bank-account.cs
Improved constructors in class BankAccount.
die.cs
Constructors in the class Die.