ãªãã¸ã§ã¯ãæåããã°ã©ã 㧠getter/setterã¡ã½ããã使ããªããã°ãªããªã 10ã®çç± ç¦ç ç§é fukumori at m.ieice.org JavaãC++ãªã©ã®ãªãã¸ã§ã¯ãæåè¨èªã§ããã°ã©ã ãæ¸ãã¦ããã¨ãã«ãåç´ãªã¡ã³ãå¤æ°ãåç §ãããæä½ããããã« anObject.getX() [以å¾ãããgetterã¡ã½ããã¨å¼ã¶] ã¨ã anotherObject.setY(y) [以å¾ãããsetterã¡ã½ããã¨å¼ã¶] ã¨æ¸ãã®ã¯ãªãã ããã¨æã£ããã¨ã¯ãªãã ããã? intåã®å¤æ°ã²ã¨ã¤ãæä½ããã®ã«ãªãããããã¡ã½ãããå®ç¾©ããã®ã ãã? åç´ã«ä»£å ¥ã使ãã°ãããããªãã? ãã®æç« ã¯ãããªããªã(ãã¤ã¦ã®åãå«ã)ããgetter/setterã¡ã½ããã使ãã¹ãã§ããçç±ã«ã¤ãã¦ã¾ã¨ãããã®ã§ããã ã¨ãããã¨ã§æ©éæ¬è«ã¸ã 1. ã¯ã©ã¹å é¨ã®ãã¼ã¿è¡¨ç¾ãå¤ããå ´
{{#tags}}- {{label}}
{{/tags}}