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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here