Question: JAVA I want a code TO Design a class to represent a credit card. Think about the attributes of a credit card; that is, what

JAVA

I want a code TO

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?. Then give three examples of instances of this class.

JAVA I want a code TO Design a class to represent a

> customer: 1 cardNumber: 452133 Name: Kamal Kumar S card ExpiryDate: 03/10/2012 1..1 CreditCard -int cardNumber -string Name -string cardExpiryDate enumeration>> cucitome:2 1..1 J ) cardNumber: 452199 Name: utendra P cardExpiryDate: 11/11/2011 O+ int getCredit(int cash) +void getPurchase(0 enumeration>> customers: 3 cardNumber: 1519880 Name: Nagendra B cardExpiryDate: 01/09/2015

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!