Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started