Class Basics

Class Basics

Now that you have structs under your belt, it's time to move on to classes. Classes are the most common user-defined type. After the video, jump into the lab!

Download and unzip ClassesLab.zip, then open the project in Visual Studio.

In SimpleClass.cs, follow the comments to implement a simple class.

Create a trivial class named SimpleClass

  • declare it as public
  • add a single method to the class, void TestMethod()
  • the method does not need to do anything


Complete and Continue  
Discussion

0 comments