Câu 1
Cho class như sau:
1: public interface Comparable {
2: int compareTo(Object other);
3: }
4: class Employee implement Comparable {
5: int compareTo(Object other) {
6: Employee other = (Employee) otherObject;
7: return 0;
8: }
9: }
Chương trình trên sai ở dòng nào?
Đáp án và lời giải
Đáp án: D