A ReadOnly property can be an auto-implemented property. a. True b. False The Salesperson class contains a ReadOnly property named Bonus. The property is associated with the Private _dblBonus...



A ReadOnly property can be an auto-implemented property.


a. True


b. False


The Salesperson class contains a ReadOnly property named Bonus. The property is associated with the Private _dblBonus variable. A button’s Click event procedure instantiates a Salesperson object and assigns it to the ourSalesperson variable. Which of the following is valid in the Click event procedure?


a. lblBonus.Text = ourSalesperson.Bonus.ToString("C2")


b. ourSalesperson.Bonus = dblSales * .1


c. ourSalesperson._dblBonus = 500


d. none of the above

Nov 26, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here