This program has something superfluous in its implementation. It's something related to constructors, and can be automatically added by the compiler. Your task is to simplify the code by removing all constructors and calls of superclasses' constructors that are created and added automatically.
The simplest code: part 2
You must be signed in to leave a comment
Oege Hiddema Java Developer at CodeGorilla
14 July 2022, 04:28
The solution says the NormalCat needs to have an empty constructor without arguments, but can this constructor not be deleted completely, just like the constructor without arguments of the NakedCat? Both don't have code in them, so the default constructor will be used (?)
31 January 2019, 17:13
This exercise has a typo: NakedCat nakedCoco = simka.shave(); Should be coco.shave();
1 February 2019, 06:49
Thank you, we will fix it.