✏️ Explanatory Question
A class is a software construct that expresses the data and methods of the objects, which are later constructed from that class. These objects are also referred to as instances. Data in a class defines the state of an object, and the methods in a class define the behavior of that object. Methods are a sequence of statements that operate on the data in a class.
Usually, methods are declared to operate on the instance variables of a class. These methods are referred to as instance or object methods. An instance variable is a variable that is bound within the instance or within an instantiated object, as opposed to a static or class variable that is bound to a class.