Question: Create 3 Coin.java class that includes the following: Takes in a coined name as part, of the constructor and stores it in a private string

Create 3 Coin.java class that includes the following: Takes in a coined name as part, of the constructor and stores it in a private string Has a method that returns the coin's name Has an abstract get value method Create four children classes of Coin.java with the names Penny. Nickle. Dime, and Quarter that includes the following: A constructor that passes the coins name to the parent A private variable that defines the value of the coin A method that returns the coins name via the parent class And any other methods that should be required Create a Pocket class that includes the following An Array List of type coin to manage coins (You MUST use 3n ARRAYLIST) A method that allows a coin to be added A method that allows a coin to be removed A method that returns a count of the coins in your array list by coin type. A method that returns a total value of as the coins in your ArrayList Create 3 No Such Coin class that will act as your custom exception (see pg.551 in cook). Create 3 Pocket Main cl3ss that includes the following: Creates an object of type pocket to be used below A main method that prompts the user with a menu of options to include: Add a coin (must specify type) Remove 3 coin (must specify type) Display a coin count Display a total value in the pocket An ability to ex: the program This method must handle poor use' input somehow using your custom exception
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
