Can it be done differently?
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Thomas
5 June 2019, 20:39
Suggest duplicate lines 5 & 6 for the Cat
I got rid of the constructor .... but it ran in main() ok
> The Cat and Dog classes must *not have constructors or must have constructors without parameters.
https://codegym.cc/tasks/com.codegym.task.task06.task0602
0
ThomasLC
22 May 2019, 17:13
I'm not quite sure what you are asking?
1. Did your code work & verify?
2. If so, what made you think to ask if this can be done differently?
0