|
|
||||||
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
1.6 Objects - DefinitionObjects are the manifestation or instantiation of classes. While classes provide a framework, i.e. variable names, method declarations, and general behavior, an object is a particular manifestation of a class. While there may only be one definition of a particular class X, there may be zero to many objects of that class.For example, the word Car generally describes what an automobile is. Car is a Class. Crysler Concorde, Mercedes 600S, and Mitsubishi Eclipse are particular instantiations (examples) of cars - they generally follow the definition of a Car (tires, doors, engine, windshield, speed, mileage, etc.), and are thus manifestations of the Car. They are Objects. Rules and Observations
|
||||||||||||||||||||||||||