Lecture overview -- Keyboard shortcut: 'u'  Previous page: Classes: An Initial Example [Section] -- Keyboard shortcut: 'p'  Next page: Clients and Servers -- 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 2 : 29

The Die Class
To be concrete we start by looking at a complete class written in C#
die.cs
The class Die.
dieApp.cs
A program that tosses three dice.
output
Sample program output.
die.cs
The class Die in the namespace Game.
dieApp.cs
A client of Die from namespace Game.
die.cs
A slightly more general Die class.
Go to exercise
Yahtzee
The Die class is a template or blueprint from which we can create an arbitrary number of die objects