Programming in Any Language

C# Classes - Lessons


Introduction to Classes

Click to enlarge

This first video will show you how and where to make your own classes. This section is the first of several that will show you how to make your own classes --- and, in turn, instantiate your own objects. PDFs: Slides, CoinToss1, CoinToss2, CoinToss2 Class


Properties

Click to enlarge

This video shows you how to set up properties and how to give access to programs that use these properties. You'll see the classic approach to setting up classes. You will also see shorthand versions using the get and set accessors. It is important you understand all the parts to classes before using the shorthand versions. PDFs: Slides, Form Code for Examples 1-6, Class EX1, Class EX2, Class EX3, Class EX4, Class EX5, Class EX6, Pet Form Code, Hobby Class, Pet Class, Animal Class.