æè¿ASãã¶ã¤ã³ãã¿ã¼ã³ã®æ¬ã話é¡ã§ããã ãããªã¨ããã§ãéçºä¸ã«ã§ããããæ¹è¯ã®ã¢ã¤ãã£ã¢ããã¿ã¼ã³ã«ãªãããã¦æ¸ãã¦ããããã¨æãã¾ãã AS3ã®éçºã§ã®ããã«ããã¯ã¯ã¨ã©ã¼å¦çãã¨ãããåç §ãNullã§ãããã¨ã«ããä¾å¤ãã©ããããã£ã¦å ´é¢ã ã¨æãã¾ãã Null Objectãã¿ã¼ã³ãã¤ãã å ã»ã©ã®æ¡ä»¶ã§å¤é¨ãã¡ã¤ã«ãèªã¿è¾¼ãã«ããããä»®ã«èªã¿è¾¼ã¿ãå®äºãã¦ãªãã£ãããéçºä¸ã§ä¸è¶³ãã¦ãã¨ãã«ãªãã¸ã§ã¯ãããªãå¯è½æ§ãèãã¦ä½ãå¿ è¦ãããã¾ããã ããããå ´åã¯ifã¹ãã¼ãã¡ã³ãã§æç¡ã確èªãã¦åå²ããããtry...catchæ§æã§ã¨ã©ã¼ãåé¿ããããã¾ãããå¯èªæ§ãè½ã¡ããããã¡ãã¡æ¸ãæãããã¨ã§æéãå ¬éæã«ééããªã¹ã¯ãå¢ãããã¨ã«ãªãã¾ãã if( se ) { se.play(); } // ã¾ãã¯ä¾å¤ãã²ãã£ã¦åæ¢ããã®ã¯ã¨ããããé²ã try{ se.play
ãªãã¸ã§ã¯ãæåããã°ã©ã 㧠getter/setterã¡ã½ããã使ããªããã°ãªããªã 10ã®çç± ç¦ç ç§é fukumori at m.ieice.org JavaãC++ãªã©ã®ãªãã¸ã§ã¯ãæåè¨èªã§ããã°ã©ã ãæ¸ãã¦ããã¨ãã«ãåç´ãªã¡ã³ãå¤æ°ãåç §ãããæä½ããããã« anObject.getX() [以å¾ãããgetterã¡ã½ããã¨å¼ã¶] ã¨ã anotherObject.setY(y) [以å¾ãããsetterã¡ã½ããã¨å¼ã¶] ã¨æ¸ãã®ã¯ãªãã ããã¨æã£ããã¨ã¯ãªãã ããã? intåã®å¤æ°ã²ã¨ã¤ãæä½ããã®ã«ãªãããããã¡ã½ãããå®ç¾©ããã®ã ãã? åç´ã«ä»£å ¥ã使ãã°ãããããªãã? ãã®æç« ã¯ãããªããªã(ãã¤ã¦ã®åãå«ã)ããgetter/setterã¡ã½ããã使ãã¹ãã§ããçç±ã«ã¤ãã¦ã¾ã¨ãããã®ã§ããã ã¨ãããã¨ã§æ©éæ¬è«ã¸ã 1. ã¯ã©ã¹å é¨ã®ãã¼ã¿è¡¨ç¾ãå¤ããå ´
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}