Tw Course Ajax 2007 Ap03

download Tw Course Ajax 2007 Ap03

If you can't read please download the document

Transcript of Tw Course Ajax 2007 Ap03

Javascript Orientado a Objetos

Christiano Milfont

Introduo

Procedural code gets information then makes decisions. Object-oriented code tells objects to do things.Alec Sharp

Prototype-based

JSON (Javascript Object Notation)

Factory Vs Construtor Vs Prototype

Private vs Public

Polimorfismo

Associao

Overloading e Overriding

Alternativa de Overloading

Herana via Object Masquerading

Herana via call e apply

call(Objeto, argumento1, argumento2, ...)apply(Objeto, array-de-argumentos)

Herana via call e apply - cont.

Herana via Prototype