ããç¨åº¦çµé¨ãç©ãã C++ããã°ã©ãã¯çµ¶å¯¾ã«virtualãã¹ãã©ã¯ã¿ã®ãªãã¯ã©ã¹ãç¶æ¿ããªã C++ã§ã¯åºåºã¯ã©ã¹ã«virtualãã¹ãã©ã¯ã¿ãæ¸ãã - ï¼ããµã£ãã¤ã®ãã ãããã¡ããã¾ãããwithã¬ã ã¯ããããééãããããã¯C++åå¿è ã®åéãã ç¶æ¿ããå¯è½æ§ã®ããã¯ã©ã¹ã«ã¯ãã¹ã¦virtualãã¹ãã©ã¯ã¿ãä½ã C++ã§ã¯åºåºã¯ã©ã¹ã«virtualãã¹ãã©ã¯ã¿ãæ¸ãã - ï¼ããµã£ãã¤ã®ãã ãããã¡ããã¾ãããwithã¬ã ã¨ãããã¨ãå¦å®ããã¦ãããã¨ã¯è¨ãããããã«Effective C++ãèªãã§ããã°ããããã¨ã C++ã§ã¯ãã³ãã¼ä¸å¯ã«ããããã«ä»¥ä¸ã®ãããªã¯ã©ã¹ãæ¸ããããããã ï¼ã³ãã¼ã³ã³ã¹ãã©ã¯ã¿ã¨ã³ãã¼ä»£å ¥æ¼ç®åãç¡å¹ã«ããï¼ class Uncopyable { protected: Uncopyable() {} ~ Uncopyable() {}
{{#tags}}- {{label}}
{{/tags}}