Thursday, February 7, 2013

What is Object?



Object is REAL WORLD ENTITY.


Objects have states and behaviors

EXAMPLE :

Consider a bike as OBJECT.

It has
          1)COLOR(as green,red,black) ,NAME of bike
                         This is called as STATE(we are using it as variables)

          2)Ride()
                         This is consider as BEHAVIORS(we are using it in our program as method)



0 comments:

Post a Comment