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:
Verified
Q70: You are designing a software solution for
Q80: If you have parallel arrays or array
Q81: Given the following diagram showing class relationships:
Q83: Given the following diagram showing class relationships:
Q84: Given the following diagram showing class relationships:
Q85: You are designing a software solution for
Q86: Given the following diagram showing class relationships:
Q87: During the implementation phase, which of the
Q90: Given the following diagram showing class relationships:
Q100: During the implementation phase, which of the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents