
Class and Object
Any entity that has state and behavior is known as an object. For example: table, book , building, pen etc. It can be physical and logical.
The class defines the structure of an object. It is a blueprint.
In java this blueprint is called a class.
And every object have some behaviour and attributes.
Attributes are data members such as variables.
Behaviour is the member functions...