Chapter 6. Maximization of Code Reuse with Generic Code
In this chapter, you will learn about parametric polymorphism and how Swift implements this object-oriented concept through the possibility of writing generic code. We will use classes that work with one and two constrained generic types.
In addition, you will learn to combine the 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.