Repeat Exercise 1 for a collection of coins instead of a credit card. Exercise 1 Design a

Question:

Repeat Exercise 1 for a collection of coins instead of a credit card.


Exercise 1

Design a class to represent a credit card. Think about the attributes of a credit card; that is, what data is on the card? What behaviors might be reasonable for a credit card? Use the answers to these questions to write a UML class diagram for a credit card class. Then give three examples of instances of this class.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: