Javaã®getter/setterã®ã話ã åã¯å½æãèªãã«ã¯è¥ãããã®ã ãã©ãéå»ãæ¯ãè¿ã£ã¦æ¸ãã¦ã¿ããå½æãç¥ã人ã¯èª¤ããããã°ææãã¦ã»ããããæ å ±ãããã°ã³ã¡ã³ããªããã©ãã¯ããã¯ãªããã¦æ¬²ãããåä¸ç´ã®è©±ã¨ããã®ã¯ä»ã¨ãªã£ã¦ã¯æ¢ããã¨ããªããªãé£ãããªãã¤ã¤ããã ãprivateãªå¤æ°ã«publicãªã¢ã¯ã»ãµãå®ç¾©ãããï¼ - ãããã®æµ·ã®çé 㧠getter/setterã¨ã¯ä½ã Javaã®ãªãã¸ã§ã¯ãã«ãã£ã¼ã«ãããã£ãã¨ãã¦ããã®ãã£ã¼ã«ãã«å¤ãè¨å®ããã¡ã½ãããsetter(ãã£ãã¼)ããã®ãã£ã¼ã«ãã®å¤ãåå¾ããã¡ã½ãããgetter(ãã£ãã¼)ã¨å¼ã°ãããæ £ç¿ã¨ãã¦setterã¯setXXX(int value)ã¨ãã£ãæ§ã«setããå§ã¾ãååãã¤ããå¼æ°ã¯ã²ã¨ã¤ãæ»ãå¤ã¯voidåãgetterã¯getXXX()ã¨ãã£ãæ§ã«getããå§ã¾ãååãã¤ããå¼æ°ã¯ãª
{{#tags}}- {{label}}
{{/tags}}