Câu 33: 70-483: MCSD Programming in C
You are creating a class named Employee. The class exposes a string property named EmployeeType. The following code segment defines the Employee class.(Line numbers are included for reference only.) The EmployeeType property value must be accessed and modified only by code within the Employee class or within a class d…
Nội dung câu hỏi
You are creating a class named Employee. The class exposes a string property named EmployeeType. The following code segment defines the Employee class.(Line numbers are included for reference only.) The EmployeeType property value must be accessed and modified only by code within the Employee class or within a class derived from the Employee class. You need to ensure that the implementation of the EmployeeType property meets the requirements. Which two actions should you perform? (Each correct answer represents part of the complete solution. Choose two.)
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. Replace line 05 with the following code segment:protected get;
- B. Replace line 06 with the following code segment:private set; — đáp án hiện tại
- C. Replace line 03 with the following code segment:public string EmployeeType
- D. Replace line 05 with the following code segment:private get;
- E. Replace line 03 with the following code segment:protected string EmployeeType — đáp án hiện tại
- F. Replace line 06 with the following code segment:protected set;
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.