이것이 자바다 8장 확인 문제 답 - 신용권의 Java 프로그래밍 정복


이것이 자바다 8장 확인 문제 답 - 신용권의 Java 프로그래밍 정복

인터페이스에 대한 설명으로 틀린 것은? 3번 인터페이스의 다형성과 거리가 먼 것은? 4번 cat과 dog 클래스를 작성해보세요 public class Main { private static void printSound(Soundable soundable){ System.out.println(soundable.sound()); } public static void main(String[] args) { printSound(new Cat()); printSound(new Dog()); } public static class Cat implements Soundable { @Override public String sound() { return "야옹"; } } public static class Dog im..


원문링크 : 이것이 자바다 8장 확인 문제 답 - 신용권의 Java 프로그래밍 정복