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.
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 or you can say methods of the class.
No comments:
Post a Comment