Tw Course Ajax 2007 Ap03
-
Upload
milfont-consulting -
Category
Technology
-
view
708 -
download
0
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