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

1 Expert Approved Answer
Step: 1 Unlock

b dblDi... View full answer

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

Students Have Also Explored These Related Programming Microsoft Visual Basic Questions!