Intro to C#: 26 - Micro RPG Part 2 - Polymorphism

Intro to C#: 26 - Micro RPG Part 2 - Polymorphism

2.262 Lượt nghe
Intro to C#: 26 - Micro RPG Part 2 - Polymorphism
In this video, we continue building out our Micro RPG game and use it to explore the concept of polymorphism in C#. This allows us to create a collection of different Enemies (Ants and Bees) and store them all in one list. === Relevant Links === Playlist: https://www.youtube.com/playlist?list=PL-LDQE9x9hLwldZPPGwqXixr-_DfINfxk Next video: https://www.youtube.com/watch?v=ScdvRKwsGzE&list=PL-LDQE9x9hLwldZPPGwqXixr-_DfINfxk Polymorphism docs: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/polymorphism Type testing and casting docs: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/type-testing-and-cast