자바 메소드 오버로딩1 [Java 자바 기초] 함수 중복 정의 method overloading 메소드 오버로딩, 매개변수가 변수 ㅋ 모든 설명은 주석으로 확인할 수 있어요. 하나씩 따라해 보세요. ^^ package javaEx; public class Review { public static void test() { System.out.println(); } public static void test(int a) { System.out.println(a); } public static void test(String a) { System.out.println(a); } public static void test(int a, int b) { System.out.println(a+b); } public static void test(int a, String b) { System.out.println(a+b); } public static.. 2020. 8. 24. 이전 1 다음