Chapter 3 Introduction to Object Oriented Programming

3.1 What is an object?

An object has:

  • features/attributes/properties

can:

  • take actions (methods)

Example:

3.2 Relationship among objects

An object can be:

  • a composition of many objects.

Some objects can all share the same properties and method as they:

  • inherit from the same family.

Object Oriented Programming (OOP) is a way to model the task in terms of various objects that have adequate properties and methods, systematically built and fabricated into a network that can work together and be maintained efficiently.