An instance of a class is an object that has been created from the class template.


A class is only a definition until an instance of the class (an object) is created. In object-oriented programming, a class is a template definition of the members in a particular kind of object. Thus, an object is a specific instance of a class; it contains real values instead of variables.

Creation of a new instance from a class template is known as instantiation.


example Java
home Home Page