interface TestInterface {
void work();
}
class TestClass {
public void work(){
System.out.println("Work in CLASS");
}
}
public class Driver extends TestClass implements TestInterface {
public static void main(String[] args) {
new TestClass().work();
}
}
TestClass에 동일한 작업 메소드 서명이 존재하기 때문에 왜이 클래스가 잘 컴파일되는지 설명 할 수 있습니까?인터페이스와 클래스에서 동일한 메소드 서명