Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- A quarter with a state theme.
- */
- public class Quarter extends Coin
- {
- String state;
- /**
- Constructs a quarter.
- @param aValue the monetary value of the quarter.
- @param aName the name of the quarter
- */
- public Quarter(String _state)
- {
- super(0.25, "Quarter");
- state = _state;
- }
- public String getDescription()
- {
- return String.format("Quarter, value=0.25, state=%s", state);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement