/** * A CardFactory creates cards for a member of the UW community. */ public abstract class CardFactory { protected static final Color CARD_COLOR = Color.PURPLE; /** * A factory method to produce a new card. * @return a new Card for the person with name 'name' and id number */ public abstract Card createCard(String name, String idNumber); public void charge(int amount) { // implementation omitted. } // other methods omitted. }