Utwórz fermę (HenFactory) do hodowli kurczaków (Hen):
1. Utwórz klasę Hen.
1.1. Spraw, aby była ona abstrakcyjna.
1.2. Dodaj do klasy abstrakcyjnej metodę int getMonthlyEggCount().
1.3. Dodaj do klasy metodę String getDescription(). Powinna ona zwracać komunikat "Jestem kurczakiem."
2. Utwórz klasę
Ferma drobiu
- 16
Niedostępne
Komentarze (3)
- Popularne
- Najnowsze
- Najstarsze
Musisz się zalogować, aby dodać komentarz
Mateusz Świniarski
16 marca, 20:54
Could you please check why my code is not pass the test?
0
Arnold Cytrowski
19 kwietnia 2020, 12:44
someone can help?
the output is ok. i tried to implement default names from Continent interface and my own, polish translation of sentences(e.g not "z Afryka" i changed to "z Afryki") and it's still the same.
0
Roman
29 kwietnia 2020, 07:28
Please refer to Help section at our course.
0