Thursday, January 15, 2009

What is the relation between Classes and Objects


Our old article based on OOPS show you detail about class and object, now there is a big relationship between class and object.
They look very much same but are not same. Class is a definition, while object is a instance of the class created. Class is a blue print while objects are actual objects existing in real world. Example we have class CAR which has attributes and methods like Speed, Brakes, Type of Car etc. Class CAR is just a prototype, now we can create real time objects which can be used to provide functionality.
Example we can create a TATA car object with 100 km speed and urgent brakes.
Suggested reading in OOPS

comments

0 Responses to "What is the relation between Classes and Objects"
 

Copyright 2009 All Rights Reserved Shakti Singh Dulawat