Introduction to Classes
This lesson discusses classes, their definition, and declaration of classes in detail using an example.
We'll cover the following
Definition
As in other object-oriented programming languages, the functionality of a C# program is implemented in one or more classes.
The methods and properties of a class contain the code that defines how the class behaves.
Several types of C# classes can be defined, including instance classes (standard classes that can be instantiated), static classes, and structures.
Declaring a Class
Skeleton of declaring class is:
Get hands-on with 1400+ tech skills courses.