인터페이스

13장 - 인터페이스와 추상클래스, enum 인터페이스에 선언되어 있는 메소드는 body가 있는가? 없음 인터페이스를 구현하는 클래스의 선언시 사용하는 예약어는 무엇인가? implements 일부만 완성되어 있는 클래스는 무엇인가? abstact 클래스 3번의 답에 있는 클래스에 body가 없는 메소드를 추가하려면 어떤 예약어를 추가해야 하는가? abstract 클래스를 final로 선언하면 어떤 제약이 발생하는가? 상속 불가 메소드를 final로 선언하면 어떤 제약이 발생하는가? overriding 불가 변수를 final로 선언하면 어떤 제약이 발생하는가? 반드시 생성과 동시에 초기화를 해줘야 함 enum 클래스 안에 정의하는 여러 개의 상수들을 나열하기 위해 상수 사이에 사용하는 기호는 무엇인가? ,..
Goal : 인터페이스란 무엇인지 알아보고, 코드에서는 어떻게 구현되는지 알아본다. 인터페이스란? In Java, an interface is a blueprint or template of a class. It is much similar to the Java class but the only difference is that it has abstract methods and static constants. There can be only abstract methods in an interface, that is there is no method body inside these abstract methods. The class that implements the interface should be ab..
dev_rosieposie
'인터페이스' 태그의 글 목록