Class is defined as a template or a blueprint that is used to create objects and also to define objects and methods.