khoahoc.vietjack.com

Câu hỏi:

28/07/2025 128 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Ủ ĐỀ

Lời giải

Chọn đáp án B

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 250K ) để 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 5

A. The class must not have method

B. The class must have a constructor that takes no arguments

C. The class must have a function definition equal to zero

D. The class may only exist during the planning phase

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 250K ) để 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ừ 250K ) để 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ừ 250K ) để 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