Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

> 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

Explain why GAS technology is popular with most auditors.

Answered: 1 week ago