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:

Verified
Correct Answer:
Verified
Q56: When documenting discovered classes and methods during
Q58: Parallel arrays are _.<br>A) Two or more
Q59: Which statement correctly describes the class relationship
Q64: Which of the following code snippets denotes
Q66: Why is it generally considered good practice
Q67: When using the CRC method, if you
Q67: Select a code segment to complete the
Q79: The final step of the design phase
Q98: UML means_.<br>A)Unified Mode Language<br>B)User Modeling Language<br>C)User Mode
Q104: You have determined a need for an