JavaãC#ãC++ãªã©ãå«ãã¦ç¾ä»£ã®ã»ã¨ãã©ã®éçãªåä»ãã®ããã°ã©ãã³ã°è¨èªã§ã¯ãç°ãªãåãåãè¤æ°ã®ã¡ã½ãããåãã¯ã©ã¹ä¸ã«å¤éå®ç¾©ãããã¨ãã§ãã¾ããããã¯ã¡ã½ããã®ãªã¼ãã¼ãã¼ã(overload)*1ã¨ãã¦ç¥ããã¦ãã¾ãããã¨ãã°ã以ä¸ã®ããã«åãtestã¨ããååã®ã¡ã½ãããè¤æ°å®ç¾©ãããã¨ãã§ãã¾ãã public class Sample { void test(String strParam) { System.out.println("String = " + strParam); } void test(Integer intParam) { System.out.println("Integer = " + intParam); } } ãã®å ´åãã©ã¡ãã®ã¡ã½ãããå¼ã³åºããããã¯ãå¼ã³åºãå´ããã©ã¡ã¼ã¿ã¼ã§æ¸¡ããå¤æ°ã®ã³ã³ãã¤ã«æã®åã§éçã«æ±ºã¾ãã¾ããã§ãã
{{#tags}}- {{label}}
{{/tags}}