A class specifies the kind of data that will be stored and the capabilities that their objects will have. You can construct custom types by grouping variables from other kinds, methods, and events into a class. The class keyword in C# is used to define a class.