Câu hỏi:

28/07/2025 35 Lưu

If a class declares a variable static, this means:

A. Each instance of a class will have its own copy of the variable

B. Changing the variable in one instance will have no effect on other instances of the class

C. Changing the variable in one instance will have no effect on other instances of the class

D. Every instance of the class must consider the value of the static variable before initializing

Quảng cáo

Trả lời:

verified Giải bởi Vietjack

Chọn đáp án C

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