400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án (Phần 8)

A variable that is declared protected

10/50

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

Giải thích

Chọn D