An object is an instance of a class . A class is a template or blueprint from which objects are created. So, an object is the instance(result) of a class.
Read moreHow object is instance of class explain with examples?
Object − Objects have states and behaviors. Example: A dog has states – color, name, breed as well as behaviors – wagging the tail, barking, eating. An object is an instance of a class. Class − A class can be defined as a template/blueprint that describes the behavior/state that the object of its type support.
Read moreWhy object is an instance of class?
A class can create objects of itself with different characteristics and common behaviour. So, we can say that an Object represents a specific state of the class . For these reasons, an Object is called an Instance of a Class.
Read more