Solved

Suppose That the Invoice-Printing Application from Section 12

Question 93

Multiple Choice

Suppose that the invoice-printing application from section 12.3 needs to be enhanced by including the computation and printing of sales taxes as needed. Since some vendors charge no sales taxes, the original Invoice class needs to be preserved. Select the code segment that best illustrates reuse of the existing Invoice class. public class TaxableInvoice ___________________________


A) extends Invoice
{

}
B) {
Private Invoice originalInvoice;

}
C) implements Invoice
{

}
D) {
Private ArrayList<Invoice> invoices;

}

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents