Creating and extending objects

por | 15 Abril, 2007

Why develop objects?

  • Data hiding
  • Code elegance
  • Code reuse
  • Script stability

Steps for developing custom objects

  • Design properties and methods
  • Create constructor functions
  • Develop methods
  • Bind methods to objects