A class contains a Private variable named strState. The variable is associated with a Public property named
Question:
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 = strState
c. strState = State.strName
d. State = strName
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: