a class is something like a blueprint of what properties an object has and what it can do. but it's only a blueprint. doesn't really exist.
instantiating a class = creating an object.
creating an object according to a class implies that this object exists in "reality" now.
taking the example of doward:
a simplistic blueprint/class of a bus
Properties: 4 wheels, a body and a wheel.
Functions: move forwards, move backwards
our company has created our 47th bus of the day. ie., in object oriented terminology, we have made our 47th instance of the class "bus" today.
Last edited by gui10; 06-03-2002 at 10:20 PM.
|