Refinements We refine the above syntax with additional features until we reach a complete, usable class proposal. Inheritance
We extend this class syntax to allow users to *declaratively* specify the prototypal inheritance they can already express *imperatively*. There are two forms: extends and prototype, each followed by an expression. When this class’s prototype object is created, either of those clauses will be used to determine which object it inherits from. The expression following extends or prototype is evaluated. Then, if extends is used, theprototype property of that object will be used. If prototype is used, the object itself will be. If neither clause is given, the class’s prototype will inherit from Object.prototype. http://wiki.ecmascript.org/doku.php?id=harmony:classes -- Recebeu esta mensagem porque está inscrito no grupo "Mailing List da Comunidade Portuguesa de Rich Internet Applications - www.riapt.org" dos Grupos do Google. Para anular a subscrição deste grupo e parar de receber emails do mesmo, envie um email para [email protected]. Para publicar uma mensagem neste grupo, envie um e-mail para [email protected]. Visite este grupo em http://groups.google.com/group/riapt. Para mais opções, consulte https://groups.google.com/d/optout.
