Pls는 참조에 대한 링크를 찾을 수 : "Strategy for success" article of JavaWorld우리는 추상 클래스에 인터페이스를 구현하는 이유
내 질문은 왜 우리가 별도의 인터페이스를 가지고 우리는 추상 클래스에서 그 추상 메소드를 선언 할 때, 추상 클래스에서 구현해야합니까 그 자체? 이미지
전, 우리는 인터페이스를 사용하는 이유
public interface Border(){
paintBorder();
getBorderInsets();
isBorderOpaque();
}
public class abstract AbstractBorder implements Border(){
.....
}
대신 우리가
public class abstract AbstractBorder {
paintBorder();
getBorderInsets();
isBorderOpaque();
}
같은 추상 클래스를 가질 수 있습니다? 필요성은 무엇입니까?
[Interface vs Abstract Class (일반 OO)] 가능한 복제본 (http://stackoverflow.com/questions/761194/interface-vs-abstract-class-general-oo) –