In this chapter, you will learn about parametric polymorphism and how Swift implements this object-oriented concept through the possibility to write generic code. We will use classes that work with one and two constrained generic types.
In addition, we will learn to combine generic code with inheritance and multiple inheritance to demonstrate the usage of generic code in real-life situations in which the code becomes more complex than the usage of a simple generic class.