â çæã«é¢ãããã¿ã¼ã³ Singleton ããã°ã©ã ä¸ãã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãï¼ã¤(ãããã¯å¶éæ°ã¶ã)ãããªãäºãä¿è¨¼ãã ãã®ã¤ã³ã¹ã¿ã³ã¹ã«ã¢ã¯ã»ã¹ããããã®ã°ãã¼ãã«ãªæ¹æ³ãæä¾ããã Builder è¤åãªãã¸ã§ã¯ãã«ã¤ãã¦ããã®ä½æéç¨ã表ç¾å½¢å¼ã«ä¾åããªããã®ã«ãããã¨ã§ã åãä½æéç¨ã§ç°ãªããªãã¸ã§ã¯ããçæã§ããããã«ããã èãæ¹ã¯TemplateMethodãã¿ã¼ã³ã¨ã ãã¶ä¼¼ã¦ããã Factory Method ã¤ã³ã¹ã¿ã³ã¹ã®çæãè¡ãã¤ã³ã¿ã¼ãã§ã¤ã¹ã ããabstractã¡ã½ããã«å®ç¾©ãã¦ããã å®éã®ã¤ã³ã¹ã¿ã³ã¹çæã¯ãã®ãµãã¯ã©ã¹ã§è¡ãã æå°è¦æ¨¡ãªTemplate Methodãã¿ã¼ã³ã¨ãã£ãã¨ããã Prototype æ¢ã«ããã¤ã³ã¹ã¿ã³ã¹ãã³ãã¼ãã¦ãæ°ããã¤ã³ã¹ã¿ã³ã¹ãçæãããã¿ã¼ã³ã ã¯ã©ã¹ãnewãã¦ä½æããäºãé£ããå ´åãã åããããªã¯ã©ã¹
{{#tags}}- {{label}}
{{/tags}}