ãªãã¸ã§ã¯ãæåã§ã½ããã¦ã§ã¢ãå®è£ ãã¦ããã¨ããªãã¸ã§ã¯ãã®çæã«ä¸é£ã®æç¶ããå¿ è¦ãªãã®ãã§ã¦ãã¾ãããã®ãããªçæã«é¢ããæç¶ãããã¡ãã¡ã®ã½ã¼ã¹ã³ã¼ãã¸æ£å¨ããã¨ãæã¾ãããªãç¶æ³ã«ãªããã¨ã¯æ³åã«é£ããªãã§ãããããã®åé¡ã«å¯¾å¦ããããã«ãSimple FactoryãFactory Methodã¨ãã£ããã¶ã¤ã³ãã¿ã¼ã³ãããããªãã¸ã§ã¯ãã®çæã«é¢ããæç¶ããé¢é£ãªãã¸ã§ã¯ããå«ãããªãã¸ã§ã¯ãã®æ§æï¼ãªãã¸ã§ã¯ãã³ã³ã¹ãã©ã¯ã·ã§ã³ï¼ã«é¢ããç¥èã¯1ç®æã«ã¾ã¨ããã¨ãããã¨ãå®ç³ã¨ãªã£ã¦ãã¾ãã ããããåã«ãã¡ã¯ããªã¼ãå°å ¥ããã ãã ã¨ããªãã¸ã§ã¯ãã®æ§æå¦çã¯åé¢ã»é è½ã§ãã¦ããå©ç¨ãªãã¸ã§ã¯ãããã¡ã¯ããªã¼èªä½ã«ä¾åãã¦ãã¾ããã¨ã«ãªãã¾ãããã®ãããªè©¦è¡é¯èª¤ã®æ´å²ããç»å ´ããã®ãDependency Injection(ä¾åæ§ã®æ³¨å ¥)ãã¿ã¼ã³ã§ããDependency
{{#tags}}- {{label}}
{{/tags}}