#BackCoding
A class is a blueprint for the object.
We can think of class as a sketch of a with labels. It contains all the details about the name, colors, price etc. Based on these descriptions, we can study about the vehicle.
The example for class of Vehicle can be :
class Vehicle:
...
...
Here, we use the class keyword to define an empty class Vehicle. From class, we construct instances. An instance is a specific object created from a particular class.
Object
An object (instance) is an instantiation of a class. When class is defined, only the description for the object is defined. Therefore, no memory or storage is allocated.
#programming
#python
#shorts