Week2

We started with the object-oriented concept and how to use existing classes. We used a simple class called Dice to do this. We learned about constructors, public methods, private data and how to use an instance of a class (object) from a program. We also used the Random class from the System namespace.

Powerpoint Slides

classes1

C# code we discussed in class (renamed as .txt files for security reasons)

dice_cs

usedice_cs

dicep1_cs

dicep2_cs

usedice2_cs

maximum3_cs

scope_cs

scopeprogram_cs