Friday 29 December 2017

4.1 Object Oriented Programming (OOPS Concept)

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 or you can say methods of the class.



No comments:

Post a Comment