700+ câu trắc nghiệm Ngôn ngữ lập trình C có đáp án - Phần 19

A variable that is declared protected:

10/25

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 đáp án D