Anatomy of an object

por | 15 Abril, 2007
  • information that describes the object
  • functions that change the state of the object

 

Duality of the object

variable -> function
property (information about the object)-> method (what the object can do)
attribute->behaviour
description->action
adjetive->verb

Encapsulation

  • Binding data and functions
  • Provides robust and secure set of elements
  • simple interface hide details
  • class an object prototype
  • Object instantaion with instructions

Inheritance

  • enables the development of a new object
  • … by extending and existing one (base)
  • Eases development while facilitating flixibility

Polymorphism

  • Associating different but related classes
  • using commond funcionts