Question: 13. A class contains a Private variable named _strState. The variable is associated with a Public property named State. Which of the following is the
13. A class contains a Private variable named _strState. The variable is associated with a Public property named State. Which of the following is the best way for a parameterized constructor to assign the value stored in its strName parameter to the variable?
a. _strState = strName
b. State = strName
c. _strState = State.strName
d. State = _strName
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
