what are the differences between class anad object?
Classes and objects are separate but related concepts. Every object belongs to a class and every class contains one or more related objects. A Class is static. The attributes of a class don’t change. An Object on the other hand has a limited lifespan. Objects are created and eventually destroyed. Also during that lifetime the attributes of the object may undergo significant change. A class is a general concept while objects are the specific and real instances that embody that concept.