Objects
An object means a thing that can be presented physically. In other words, an object is a touchable entity that may show some well defined behavior.
According to famous software architect, Grady Booch, an Object has the Following characteristics:
- State
- Behavior
- Identity
For Example:
A car has fulfills these requirements to become an object. A car has the following characteristics:
- A car can have various states, such as moving and stationary.
- It can show various behaviors, such as accelerating, decelerating, or turning.
- It also has an identity, such as unique registration number.
Note:
- Two objects may have the same behavior and state, but they can never have same identity. The identity of an object does not change in its lifetime.
- An object can be associated with multiple methods, each having a set of instructions. Each of these methods has a unique purpose and helps implement a particular behavior of the object.
Tags:
c#
c++
core_php
java
javascript
JS
kotlin
Object Oriented Programmings
oop
oop php
OOPs
python