Question: Please use Java. 7.55 Wallet Constructors Create a public class called Wallet in the Wallet.java flle. Wallet instances will hoid 3 private attributes The owner's
7.55 Wallet Constructors Create a public class called Wallet in the Wallet.java flle. Wallet instances will hoid 3 private attributes The owner's name as owner as a String. a paperMoney variable as an int, a coinMoney variable as double Do not make setters and getters for this class. The private attributes must be: String ownet: int paperMoney? double coinManey; Create ONLY 2 constructors that will assign in this order: (owner, paperMoney, coinMoney) and another that will assign (owner, paperMoney) In the latter case, assign coinMoney to one cent (01) include a public inethod totalMoney0 which will retum the total amount of money in the Walet instance-as the sum of paperMoney and coinmoney
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
