A class definition is a template for objects : it specifies what attributes the objects have and what methods can operate on them. Every object belongs to an object type; that is, it is an instance of a class.
A class definition is a template for objects : it specifies what attributes the objects have and what methods can operate on them. Every object belongs to an object type; that is, it is an instance of a class.