Question: 3. The Item class contains a Private variable named _dblCost. The variable is associated with the Public Cost property. An application instantiates an Item object
3. The Item class contains a Private variable named _dblCost. The variable is associated with the Public Cost property. An application instantiates an Item object and assigns it to a variable named phone. Which of the following can be used by the application to assign the number 150.65 to the _dblCost variable?
a. phone.Cost = 150.65
b. item.Cost = 150.65
c. phone._dblCost = 150.65
d. item._dblCost = 150.65
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
