Unity C# Tutorial: Advanced classes (creating extensions, interfaces & generics)


C# provides a lot of ways that we can work with classes to make our code easier to write and to maintain. In this tutorial I’ll be looking at a few key areas. Extensions allow us to add custom methods to existing classes; Interfaces allow us to set rules that a class needs to follow in terms of what functions it provides; and, generics allow us to operate on a wide range of data with the same code.

Find the code here: https://github.com/GameDevEducation/DeepDive_AdvancedClasses