Question: The Item class contains a Public method named GetDiscount. The method is a function. An application instantiates an Item object and assigns it to a
The Item class contains a Public method named GetDiscount. The method is a function. An application instantiates an Item object and assigns it to a variable named cellPhone. Which of the following can be used by the application to invoke the GetDiscount method?
a. dblDiscount = Item.GetDiscount
b. dblDiscount = cellPhone.GetDiscount
c. dblDiscount = GetDiscount.cellPhone
d. cellPhone.GetDiscount
Step by Step Solution
3.38 Rating (151 Votes )
There are 3 Steps involved in it
b dblDi... View full answer
Get step-by-step solutions from verified subject matter experts
