Question: In java TASK: Create a class called Transaction Manager with the following properties: It should have a private instance variable of type ArrayList called transactions

In javaIn java TASK: Create a class called Transaction Manager with the following

TASK: Create a class called Transaction Manager with the following properties: It should have a private instance variable of type ArrayList called transactions to keep track of transactions It must have a public no-parameter constructor that initializes its instance variables It must have a public method called addTransaction that has a double parameter called amount followed by a String parameter called description, and it should add a new Transaction object with amount for the amount and description for the description to the transactions instance variable It must also have an overloaded addTransaction method that only has one parameter of type double called amount, and it should add a new Transaction object with amount for the amount and "No description" for the description to the transactions instance variable It must have a public method called getTransactions that doesn't have parameters and that returns a copy of the transactions instance variable NOTE: Ignore the "Sample Input:" and "Sample Output:" sections immediately below this. They are always shown by Stepik, even if they're not used. The "CORRECT" message is something that is being used behind-the-scenes in the grading system

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!