"What? You figured that out already?! You can't just go and complete all my tasks. It seems to me that you're just fooling around. Here's a new task for you. It's very difficult. Pay attention and arrange everything systematically. Read the literature, and ask your friends! Nobody dares deceive the Great Diego!"
Bonus task | Lesson 6 | Level 4
Comments (64)
- Popular
- New
- Old
You must be signed in to leave a comment
Untitled by Anon
4 May, 11:47
Great task. I failed the first attempted because I wrote "I lay n eggs per month" vs. "I lay n eggs a month".
0
Krzysiek Nowak
26 April, 10:46
why switch method introduced in Java 14 is not accepted in the solution?
0
manny9876
14 February, 17:24
Thank goodness for the " correct solution" button!
0
Tasmoda Android Developer
10 June 2022, 09:17
I enjoyed analysing this problem.👌
0
Jcode
6 April 2022, 18:48
Great task, although watch out, the verification even checks the return string. Spot the difference...
"I am a chicken"
"I am a chicken."
+1
whoseunassailable Backend Developer
2 March 2022, 11:14
the task seemed easy for me. The place where i had to give up on it is i never thought about using the switch statement instead made different variables hen, hen2, hen3 & hen4 and then assigned them different hentypes. Is there a way by which we can solve it not using the switch statements.
0
whoseunassailable Backend Developer
2 March 2022, 11:17
ohhh anyways i realised that i can use the if condition.So nvm.
0
John
2 June 2021, 15:14
Finnaly finished this taks but im confused why it works to just call the getMonthlyEggCount() by typing just that in the getDescription even if its not static?
0
ImDevin
9 June 2021, 14:59
I wondered about that too and after doing some searching, found that if there's no access modifier, the method is default, which is Package-Private, meaning it is accessible within the same package, so you can call it just by the method name.
+1
Jurij Thmsn
22 February 2021, 14:15
Tough task due to complexity and text issues. Really nice!
Didn't understand why the continents were in an interface though .... (?)
+2
Gellert Varga
20 February 2021, 21:43
My biggest lesson from this task is:
Never code any plus things, strictly just what the requirements dictate!
Here specifically: do not add any extra fields to the Hen class and its subclasses, only the methods that is written in the requirements.
(And I didn't figure this out on my own, just with help...)
+4
Bartlomiej Drozd
26 January 2021, 14:37
It should say that hen and all its children should be located in separate files though...
+2
Justin Smith
6 August 2021, 21:44
It's there, but if you do what I do and skip to the numbered conditions, it's not there. The part above the numbered conditions says that all created classes must be in their own files. The numbered conditions only specify the child classes have to be in separate files. Led to a lot of aggravation and futile googling for how to inherit an inner class from another file.
0