Defining a Class

Defining a Class

A C# class let's you define a user-defined data type that contains fields, properties, and methods. A class serves as a blueprint for an object. The  object is the actual thing that follows the…