The Item class contains a Public method named GetDiscount. The method is a function. An application instantiates

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 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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: