An object is a basic unit of object-oriented programming and represents a real-life entity.
A typical Java program creates many objects, which interact each other by invoking methods.
An object consists of
State, which is represented by attributes of an object, and also reflects the properties of an object.
Behavior, which is represented by methods of an object, and also reflects the response of an object with other objects.
Identity, which gives a unique name to an object and enables one object to interact with other objects.
Objects correspond to things found in the real world.
For example, a graphics program may have objects such as circle, square, and menu.
An online shopping system might have objects such as shoppingCart, customer, and product.