A class is sort of blueprint from which all objects can be created, it explains a group of objects, along with describing the object data type. Fields, properties, methods, and events on a class are collective, can also be called as template or set of instructions. It contains all the data items contained in a group in a way of possible values and operations.