If classes are the blueprint for an item, objects are the actual item. We have designed the blueprint of a Dog with attributes such as name
and breed
, and methods bark
and wag_tail
. The next thing we do is create an object for this class. i.e create a dog who has a name and breed type.
We have now successfully created one instance of a Dog. We can create as many instances as we like and assign them to our variables or append them to a list.