Cho class như sau:java1: public interface Comparable { 2: int compareTo(Object other); 3: }4: class Employee implement Comparable { 5: int compareTo(Object other) {6: Employee other = (Employ
Giải thích
Chọn đáp án D (Lưu ý: implement sai, phải là implements. otherObject ở dòng 6 chưa được khai báo. Phương thức compareTo khi implement interface phải là public)