Question
Multiple Choices
You are creatng a class named Employee. The class exposes a string property named EmployeeType. The following code segment defnes the Employee class. (Line numbers are included for reference only.)
The EmployeeType property value must be accessed and modifed only by code within the Employee class or within a
class derived from the Employee class.
Which actons should you perform?
-
A. Replace line 05 with the following code segment:
protected get;
-
B. Replace line 06 with the following code segment:
private set;
-
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;
-
F. Replace line 06 with the following code segment:
protected set;