Javascriptã§ãªãã¸ã§ã¯ãæåãªã³ã¼ããæ¸ãã«ã¯ãprototypeãã¼ã¹ãªè¨èªãããä»ã®OOè¨èªã¨ç°ãªãå¤å°ã®å°ç´°å·¥ãå¿ è¦ã«ãªãã¾ããããæ¹ã¯å¹¾ã¤ãããããã§ãããèªåã§ãããã試ãã¦ã¿ãããã§ã®ã¾ã¨ããããã§å ±æãã¦ã¿ã¾ãã OOPã¨è¨ã£ã¦ããããã¾ã§å人çã«æä½éå¿ è¦ã ã¨æããããæ©è½ã®å®ç¾ãç®çã«ãã¦ãã¾ã: åã¯ã©ã¹ã®ã³ã³ã¹ãã©ã¯ã¿ã«ã¦ã親ã®ã³ã³ã¹ãã©ã¯ã¿ãå®è¡ ä»ã®OOè¨èªã§ã¯ç©ºæ°ãå¸ãããã¨ãå®è£ ããã¦ããæ©è½ ã¡ã½ããã®ç¶æ¿ Child.prototype = new Parent() ãªãã¦è¦ªã¤ã³ã¹ã¿ã³ã¹ãä½ãäºç¡ããªãã¨ããã ããããããã«å°ãªãæéã§å®ç¾ã§ããããhacker諸æ°ãªãã°ã¡ããã£ã¨é 使ãã°ã§ããã®ã§ãããããèªåã¯ã¦ãã¦ãæéããã¦æ©ãã§ãã¾ãã¾ãã orzã以ä¸3éãã®è§£æ±ºçã§ãã ç®æ¬¡ å°ç¨ã®extendé¢æ°ã使ã 使ãæ¹ ãµã³ãã«ããã³ã
{{#tags}}- {{label}}
{{/tags}}