Definition: An object is an identifiable entity with some characteristics and behavior.
An object can also be called as an item, person, place or an activity.
Object has three characteristics:
- State: This refers that an object can be in many states.
- Behavior: This refers that what an object is capable of doing. The object Fan has the behavior of blowing air. Similarly every object has its own behavior.
- Identity: This refers to the name of object. Example Table, Fan, Car etc.
Syntax:
Example:
Discussion:
No comments:
Post a Comment