implements1 제네릭 타입의 상속과 구현 // Parent.java public class Parent { private kind; private model; public void setKind(T kind) { this.kind = kind; } public void setModel(M model) { this.model = model; } public T getKind() { return kind; } public M getModel() { return model; } } class Tv{} // Child.java public class Child extends Parent { private C company; public void setCompany(C company) { this.company = company; } public C g.. 2020. 4. 6. 이전 1 다음