What is an object in Object Orientation (OOP)?


Definition 1:

An object is a combination of messages and data. Objects can receive and send messages and use messages to interact with each other. The messages contain information that is to be passed to the recipient object.


Definition 2:

An object literally means a 'material thing' that is capable of being presented to the senses.


Definition 3:

An object is a tangible entity that may exhibit some well-defined behavior. For example, let us consider a tennis ball:

  • A tennis ball is a tangible entity, with a visible boundary.
  • A tennis ball has a specific defined purpose (such as bouncing)
  • You can direct a specific action towards a tennis ball by hitting it with racquet or by tossing it.

No comments:

Post a Comment

Recent Posts