An identifiable entity which has its own properties and behaviors.
Everything we see around us are objects.
eg:- BOOK
Book has Properties
- width
- height
- no. of pages
- title
behaviors
- turn pages
Mobile-phone has
Properties
- display-screen
- resolution
- keypad
- price
- ring-tone
behaviors
- receive call
- make call
- ring
- switch on/switch off
The properties makes it appear as a mobile-phone. (Determines its state)
The behaviors makes it behave like mobile-phone. (Makes state-change)
all ring switch on/switch off
The properties makes it appear as a mobile-phone. (Determines its state)
The behaviors makes it behave like mobile-phone. (Makes state-change)
No comments:
Post a Comment