Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write java codes to implement the following requirements. You are required to demonstrate (in your solutions) that you can apply inheritance/polymophism/interface(implementation)/comments(documentation) and additional java

Please write java codes to implement the following requirements. You are required to demonstrate (in your solutions) that you can apply inheritance/polymophism/interface(implementation)/comments(documentation) and additional java skills.

1. Create a JavaTransactionAccount class, so that one may store a name, an ID, account balance, and a list of transactions.

Please maximize code re-use and extend your class from a Java class you have learned from this semester. Then add additional information if some of them are not available from the super class.

2. Add a new instance field (called credit score) for each account. Add new methods to process this field as needed.

3. Implement a "Measurable" interface in your Java class so that we can find out the total # of transactions of each account.

4. Add codes in your java class to implement and override the .toString() method so that it returns the name, id, account balance and the total # of transactions. You do not need to include the detail listing of transactions in your .toString() output

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

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions

Question

WHAT can go wrong that we havent anticipated?

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago