Correct the Euro class to avoid a StackOverflowError. And, strange as it may seem, the Euro should inherit the Money class, which should implement the getAmount method.
OOP: The Euro is money too
- 8
Locked
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Kent Hervey Software Engineer/Consult at Zeal IT ConsultantsExpert
22 May 2021, 16:10
I got it to literally meet all the requirement, but it was rejected.
Changed a return type to a more super type and then it worked.
0