Đoạn mã sau có lỗi biên dịch nào sau? class Student { protected String name; } public class Man extends Student{ public static void main(String[] args) { Man m = new Man(); m.name="John"135/259Đoạn mã sau có lỗi biên dịch nào sau? class Student { protected String name; } public class Man extends Student{ public static void main(String[] args) { Man m = new Man(); m.name="John"; } }name has protected access in Student.Không có lỗi biên dịch.class Man has no attribute name. class Man has no attribute or method name.Giải thíchChọn đáp án B