A variable that is declared protected:
Is visible only in the subclasses (and not in the class it is declared in)
Is visible only in the class it is declared in
Is visible to all classes, but modifiable only in the class where it is declared
Is visible in the class it is declared in, and all of its sub-classes
Hãy suy nghĩ và trả lời câu hỏi trước khi xem đáp án
Tổng hợp câu hỏi trắc nghiệm lập trình C/C++ có đáp án và lời giải đầy đủ nhằm giúp các bạn dễ dàng ôn tập lại toàn bộ các kiến thức.