Câu 122: Salesforce Certified Platform Developer I
Given the code below, what can be done so that recordCount can be accessed by a test class, but not by a non-test class?
Nội dung câu hỏi
Given the code below, what can be done so that recordCount can be accessed by a test class, but not by a non-test class?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Change recordCount from private to public.
- B. Add the SeeAllData annotation to the test class.
- C. Add the TestVisible annotation to recordCount. — đáp án hiện tại
- D. Add the TestVisible annotation to the MyController class.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.