Prototype.jsã§ã¯Object.extendã¡ã½ããã使ããã¨ã«ãã£ã¦ãã¯ã©ã¹ã®ãç¶æ¿ããè¡ããã¨ãã§ãã¾ããObject.extendã¡ã½ããã®å½¹å²ã¯ããªãã¸ã§ã¯ãã®ãã¼ã¸ã§ãã第1å¼æ°ã«æ¸¡ããããªãã¸ã§ã¯ãã«ç¬¬2å¼æ°ã«æ¸¡ããããªãã¸ã§ã¯ãã®ããããã£ããã¹ã¦ã³ãã¼ããã®ã§ããã§ã¯ãããã使ã£ã¦ã©ã®ããã«ç¶æ¿ãè¡ãã®ã§ããããã ãªã¹ã10ã®ä¾ãè¦ã¦ãã ããã ãªã¹ã10ï¼ã¯ã©ã¹ã®ç¶æ¿ // Humanã¯ã©ã¹ãç¶æ¿ããProgrammerã¯ã©ã¹ãå®ç¾©ãã var Programmer = Class.create(); Object.extend(Programmer.prototype, Human.prototype); Object.extend(Programmer.prototype, { // ãªã¼ãã©ã¤ã initalize: function(name, lan
{{#tags}}- {{label}}
{{/tags}}