Đoạn mã sau có lỗi biên dịch nào? class Student { public int getAge() { return 10; } } public class Man extends Student { protected int getAge(int added) { return super.getAge() + added; } }
Giải thích
Chọn đáp án A.Vì:getAge() ở Student và Man có arguments khác nhau, nên chúng là các phương thức khác nhau.