Saturday, May 12, 2012

What is an instance?

An instance is created from a class. The class can be seen as a blueprint and the instance is the actual object that is created from the blueprint. The class can make several objects or instances with different attributes. A Car Class would be able to have different instances for example, such as BMW, Honda, Jaguar, Mercedes.

In my own words,

an instance is a particular case in which an object is created from a set of defined attributes and functions from a blueprint or class.

No comments:

Post a Comment