ååã¯ãPerlã§æ¸ããã®ã ãã©ã Rubyã§ãæ¸ãã¦ã¿ãã®ã§è¼ãã¾ãã åçåä»ãè¨èªã¨éçåä»ãè¨èªã«ãããå¤æ æ§ ãªãã¸ã§ã¯ãæåã§ã¯ãå¤æ æ§ï¼ããªã¢ã¼ãã£ãºã ï¼ã¨ããçºæ³ãã§ã¦ããã ãã®å¤æ æ§ãå®ç¾ããæ¹æ³ãä»åã¯2ã¤ç´¹ä»ããã Rubyã¯åçåä»ãè¨èªã§ãããããã¯ã¿ã¤ãã³ã°ã¨ããææ³ã§ãå¤æ æ§ãå®ç¾ã§ããã 対ãã¦ãéçåä»ãè¨èªã§ããJavaã§ã¯ä¸ä½ã®åãä½ããã¨ã§å¤æ æ§ãå®ç¾ã§ããï¼ä»åã¯ã¤ã³ã¿ãã§ã¼ã¹ãç¨ãã¦ã¿ãï¼ã ããã¯ã¿ã¤ãã³ã° Rubyã§ã®ã¿ãã¯ã¿ã¤ãã³ã°ãè¦ã¦ã¿ããã human = Human.new dog = Dog.new duck = Duck.new human.touch(dog) human.touch(duck)ãã¾ããã®ããã«humanãtouchããã¨ããã®ãã®ã®åç©ãé³´ãã½ã¼ã¹ãæ¸ãã¦ã¿ãã duckï¼ã¢ãã«ï¼ã¯humanï¼äººéï¼ã«è§¦ã
{{#tags}}- {{label}}
{{/tags}}