Question: Java.12 Implement MyExpenses class inside a package called expenses that contains: An array called myExpenses where all expense objects are stored. An init method where
Java.12 Implement MyExpenses class inside a package called expenses that contains:
An array called myExpenses where all expense objects are stored.
An init method where all expense objects are created. Each expense object needs to be stored in myExpenses array. All expense values need to be passed as 2 arguments when constructing each expense object. You need to include at least 5 different expense objects.
A print method printing all the attributes for each expense object, the total amount of expenses and the total balance.
The main method that calls the init and print methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
