3.1.6 여러 인터페이스 구현
클래스는 인터페이스를 몇 개든 구현할 수 있다. 예를 들어 파일에서 정수를 읽어 오는 FileSequence 클래스는 IntSequence와 Closeable 인터페이스를 구현할 수 있다.
public class FileSequence implements IntSequence, Closeable {
...
}
이렇게 구현하면 FileSequence 클래스는 IntSequence와 Closeable을 슈퍼타입으로 둔다.