éæ¾/ééååï¼ããã»ãã¸ãããããããopen/closed principleãOCPï¼ã¨ã¯ããªãã¸ã§ã¯ãæåããã°ã©ãã³ã°ã®è¨è¨ã¸ã®æè¨ã§ããã ã½ããã¦ã§ã¢è¦ç´ ï¼ã¯ã©ã¹ãã¢ã¸ã¥ã¼ã«ãé¢æ°ãªã©ï¼ã¯ãæ¡å¼µã«å¯¾ãã¦ã¯éãã¦ãããä¿®æ£ã«å¯¾ãã¦ã¯éãã¦ããã¹ãã§ããã software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification.[1] ãã®ååã«å¾ã£ã¦ããã°ãã½ã¼ã¹ã³ã¼ãã®ä¿®æ£ãããã¨ããåè¦ç´ ã®æ¯ãèããæ¡å¼µãããã¨ãå¯è½ã«ãªãã¨ãã¦ããã ãã®éæ¾/ééã®ååã¯ã1988å¹´ã«ãã¼ãã©ã³ãã»ã¡ã¤ã¤ã¼ãæå±ãããã®ã¨ã1996å¹´é ã«ããã¼ãã»Cã»ãã¼ãã³ï¼è±èªçï¼ããæå±ãããã®ã®äºéãããããã©ã¡ããç¶æ¿ãããªã¢ã¼ãã£ãºã ã«ãã
{{#tags}}- {{label}}
{{/tags}}