Question: 5. The Purchase class contains a ReadOnly property named Tax. The property is associated with the Private _dblTax variable. A buttons Click event procedure instantiates

5. The Purchase class contains a ReadOnly property named Tax. The property is associated with the Private _dblTax variable. A button’s Click event procedure instantiates a Purchase object and assigns it to the currentSale variable. Which of the following is valid in the Click event procedure?

a. lblTax.Text = currentSale.Tax.ToString("C2")

b. currentSale.Tax = 15

c. currentSale.Tax = dblPrice * .05

d. all of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock