Solved

Regarding the Invoice-Printing Application from Section 12

Question 85

Multiple Choice

Regarding the invoice-printing application from section 12.3, it is decided that a Customer class is needed to store customer information, including the name, billing address, and a customer id number to be printed at the top of each invoice. Since the existing Address class already stores the customer's name and physical address, the new Customer class can simply reuse Address. Select the code segment that best illustrates how the Customer class can reuse the existing Address class. public class Customer ___________________________


A) extends Address
{
Private String idNumber;

}
B) {
Private Address information;
Private String idNumber;

}
C) implements Address
{
Private String idNumber;

}
D) {
Private Address information;
Private String name;
Private String street;
Private String city;
Private String state;
Private String zip;
Private String idNumber;

}

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