Closed romaneo closed 3 years ago
Create a class that describes the behavior of the Zoo.
Zoo
In the Zoo should be available the following activities for the visitor:
type
name
move
start
feeding
food
meet
grain
fruit
Fill Zoo with different animals:
Programm workflow:
sound
Type: Lion, Name: Simba, Sound: Roar
Lion - walk
Eagle - fly
Lion eats meet, Lion doesn't eat grain, Lion doesn't eat fruit
Learning materials:
Technical details:
Added later https://en.wikipedia.org/wiki/Composition_over_inheritance https://metanit.com/sharp/tutorial/3.11.php https://www.bestprog.net/uk/2019/03/09/run-time-type-information-statements-is-as-examples-ua/
https://app.pluralsight.com/guides/interfacing-csharp https://app.pluralsight.com/guides/calling-virtual-and-non-virtual-methods-csharp https://app.pluralsight.com/guides/static-vs-instance-members-csharp
https://betterprogramming.pub/casting-in-c-b0cdb21e6048 https://uk.wikipedia.org/wiki/%D0%9F%D0%BE%D1%81%D0%B5%D1%80%D0%B5%D0%B4%D0%BD%D0%B8%D0%BA_(%D1%88%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_%D0%BF%D1%80%D0%BE%D1%94%D0%BA%D1%82%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F) https://app.pluralsight.com/library/courses/c-sharp-code-more-object-oriented/table-of-contents Theme - What makes code object-oriented
Create a class that describes the behavior of the
Zoo
.In the
Zoo
should be available the following activities for the visitor:type
andname
of the animals and the '''sound''' it makesmove
in front of the visitorstart
the process offeeding
of different types offood
:meet
grain
fruit
Fill Zoo with different animals:
Programm workflow:
type
,name
,sound
of each animal (e.g,Type: Lion, Name: Simba, Sound: Roar
)Lion - walk
,Eagle - fly
)food
(e.g.Lion eats meet, Lion doesn't eat grain, Lion doesn't eat fruit
)Learning materials:
https://medium.com/@kamilmasyhur/a-principle-of-object-oriented-design-79b9bfefd446
Technical details:
https://stackoverflow.com/questions/5816563/when-should-i-choose-inheritance-over-an-interface-when-designing-c-sharp-class
Added later https://en.wikipedia.org/wiki/Composition_over_inheritance https://metanit.com/sharp/tutorial/3.11.php https://www.bestprog.net/uk/2019/03/09/run-time-type-information-statements-is-as-examples-ua/
https://app.pluralsight.com/guides/interfacing-csharp https://app.pluralsight.com/guides/calling-virtual-and-non-virtual-methods-csharp https://app.pluralsight.com/guides/static-vs-instance-members-csharp
https://betterprogramming.pub/casting-in-c-b0cdb21e6048 https://uk.wikipedia.org/wiki/%D0%9F%D0%BE%D1%81%D0%B5%D1%80%D0%B5%D0%B4%D0%BD%D0%B8%D0%BA_(%D1%88%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD_%D0%BF%D1%80%D0%BE%D1%94%D0%BA%D1%82%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F) https://app.pluralsight.com/library/courses/c-sharp-code-more-object-oriented/table-of-contents Theme - What makes code object-oriented