Refer to the exhibits to answer the question.
A new application requirement is to keep track of a student’s credit card information for payment of
course fees and student loans. Using the Class Diagram in the Exhibit and good design principles,
what is the BEST approach to satisfy this requirement?
A.
Two new classes, CreditCard and Payment, are added. An aggregate relationship between
Student and CreditCard is created since the student owns and is authorized to use the credit
card(s). An association relationship between Payment and CreditCard is also added.
B.
A new class called CreditCard is added, and an aggregate relationship between Department
and CreditCard is created because each department plans its budget based on fees collected from
students majoring in that department’s course curriculum.
C.
A method is added to the Student class that will directly access the data base in which credit
card information of all students is stored.
D.
The Student class is modified so that whenever some system, for example the Student Loan
system, requires credit card information, this application will prompt the user and send the credit
card information to that system.