Rubyã«ãããç¶æ¿ã¯Javaã«ãããç¶æ¿ã¨ç°ãªãç´°ããªç¹ãããã¤ããã£ãã®ã§ã¾ã¨ããå¿
è¦ããã£ãã ãã®è¨äºã¯O'Reillyã®Rubyæ¬ãåèã«ãã¦ããã ã¾ããåºæ¬åã ãPointããã¹ã¼ãã¼ã¯ã©ã¹ã¨ãããµãã¯ã©ã¹ãPoint3Dãã宣è¨ããæ¹æ³ã¯ä»¥ä¸ã®éãã #super class class Point #ããã¯Pointã¯ã©ã¹ã®å®è£
(implementation) #ã¡ã½ããï¼ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ããã»ã¯ã©ã¹ã¡ã½ããï¼, #å¤æ°ï¼ã¤ã³ã¹ã¿ã³ã¹å¤æ°ã»ã¯ã©ã¹å¤æ°ã»ã¯ã©ã¹ã¤ã³ã¹ã¿ã³ã¹å¤æ°ï¼, #å®æ° #ãªã©ãå
¥ã end class Point3D < Point #ããã¯Point3Dã¯ã©ã¹ã®å®è£
(implementation) end ããããPointã§å®£è¨ããã以ä¸ã®å
ã¤ã®è¦ç´ ãã©ã®ããã«ãPoint3Dã«ç¶æ¿ãããã®ãï¼ãããã¯ç¶æ¿ãããªãã®ãï¼ãä¸ã¤ãã¤è¦ã¦ããã ï¼ãã¤
{{#tags}}- {{label}}
{{/tags}}