• 16
  • Locked
Let's do some work with money. Your job is to expand the functionality of a program that can manipulate currencies. For the specific currencies, see the task conditions. To start, create a private double field amount in the abstract Money class...
You can't complete this task, because you're not signed in.
Comments (8)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Jurij Thmsn
Level 29 , Flensburg, Germany
25 February 2021, 15:39
Note: The getCurrencyName method in the Euro class should return "EUR", "RUB", "USD". And you have to use "double amount" (primitive) not " Double amount"(Wrapper) in the Euro, Ruble and USD constructors to validate, even though the code works as well the other way.
Jonaskinny Java Developer at Sandmedia
1 March 2022, 02:41
Level 27 , London, United Kingdom
24 September 2020, 12:39
Verified without completing the last step
Level 23 , Columbia, United States
7 August 2020, 02:40
Even though I did this in one try, it exposed holes in my knowledge. These exercises are building a solid foundation.
Level 26 , Normal, United States
6 June 2020, 05:40
why there is an abstract double getAmount()declared in money class? .Can we create object of static class? Person paul = new Person("Paul");please explain.
Jonaskinny Java Developer at Sandmedia
1 March 2022, 02:44
abstract classes can hold state, very useful in hierarchies where you want to force subclassing (no instatiating abtracts) yet share some common behaviors that require state... so you may want to make some adjustments
Santosh Kumar
Level 19 , Gagret, India
3 March 2019, 16:26
Please assist on this.
Level 41
4 March 2019, 07:05
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at