An object created by a class is an instance of the class , and the class that created that instance can be considered as the type of that object , e.g. a type of an object created by a `` Fruit '' class would be `` Fruit '' .

And , although there is only one class that is called `` truck '' , many objects of type truck could be created from this class .
