Skip to content

Instantly share code, notes, and snippets.

@rodrigo-x
Created October 15, 2012 00:27
Show Gist options
  • Save rodrigo-x/3890272 to your computer and use it in GitHub Desktop.
Save rodrigo-x/3890272 to your computer and use it in GitHub Desktop.
snippet - conceito...
var Class = Class || {};
//Constructor de Outra forma
Class = {
Pessoa: (function(name, age){
this.age = name;
this.name = age;
});
}
var Pessoa = (function(name, age){
this.name = name;
this.age = age;
})
Pessoa.prototype = {
getName: function(){
return this.name.getName();
},
getAge: function(){
return this.age.getAge();
},
getCategory: function(){
return this.category.getCategory();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment