Learn what makes C# an object-oriented language.


C# is a fully-featured object-oriented language, which means that C# programs are a set of interconnected objects.

A class is an object’s definition, and an object is an instance of a class. To better understand this, we can draw an analogy with a real-life object. For instance, suppose we have a blueprint for how to make a car. A class can be thought of as this blueprint, while the actual object (the car in our garage) is an instance of the Car class. Another example of a class is an abstract concept of rectangle. Concrete examples that we draw are instances of this class:

Get hands-on with 1200+ tech skills courses.