Solved

Suppose That the Invoice-Printing Application from Section 12

Question 62

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