Câu hỏi:

28/07/2025 37 Lưu

A variable that is declared protected:

A. Is visible only in the subclasses (and not in the class it is declared in)

B. Is visible only in the class it is declared in

C. Is visible to all classes, but modifiable only in the class where it is declared

D. Is visible in the class it is declared in, and all of its sub-classes

Quảng cáo

Trả lời:

verified Giải bởi Vietjack

Chọn đáp án D

CÂU HỎI HOT CÙNG CHỦ ĐỀ

Câu 3

A. A const member

B. A reference parameter

C. A static member

D. A function member

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP

Câu 7

A. A function called when an instance of a class is initialized

B. A function that is called when an instance of a class is deleted

C. A special function to change the value of dynamically allocated memory

D. A function that is called in order to change the value of a variable

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP