Monday, 29 August 2011

what is an object?

Ans:
  • Object is a run time entity.

  •  A set of data combined with methods for manipulating

        that data.

Three properties characterize objects:
  1. Identity

  2. State

  3. Behavior


Syntax:

     ClassName object ;

                  (or)

     ClassName object = new ClassName;

0 comments:

Post a Comment