클래스에서 상속할 때 확장됩니다.
implements는 인터페이스를 상속할 때 사용되는 예약어입니다.
이렇게 해서 부모와 자식 관계가 상속으로 성립됩니다.
여러 부모, 클래스 및 인터페이스는 동시에 자식 관계를 가질 수 있습니다.
public class G implements D, E, F{}
public class G extends A implements D{}
https://standout.157
계승하다, 확장하다
Inherit, Extend Inherit, Extend Extend 이미 생성된 클래스를 기반으로 새로운 클래스를 생성하고 확장할 수 있습니다.
이때 확장 서브클래스를 호출하면 상속받은 서브클래스가 부모 클래스 다음에 호출된다.
standout.tistory.com
https://standout.161
상속, 구현
클래스를 상속할 때 extend가 사용되지만 인터페이스는 예약어 implements를 사용합니다.
https://standout.157 Inherit, Extend Inherit, Extend Inheritance Extended Extend 이미 생성된 클래스 기반
standout.tistory.com