Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


What is the relation between Classes and Objects?


They look very much same but are not same. Class is a definition, while object is 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 Maruti car object with 100 km speed and urgent brakes.

 

asked Sep 13, 2013 in oops by rajesh
edited Sep 12, 2013
0 votes
22 views



Related Hot Questions



Government Jobs Opening


...