Question: The Purchase class contains a ReadOnly property named Tax. The property is associated with the Private _dblTax variable. A buttons Click event procedure instantiates a
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 * 0.05
d. All of the above
Step by Step Solution
3.29 Rating (170 Votes )
There are 3 Steps involved in it
a lblTax... View full answer
Get step-by-step solutions from verified subject matter experts
