Classes That Use Generic Type Parameters, Part 2

In this free Scala video training lesson I continue to show how to work with generic type parameters when creating Scala classes.

In this video I start by creating a Pair class that uses two generic type parameters:

class Pair[A, B](a: A, b: B)

Then I show how to extend that class when creating another class, and how to use this new type as the return value of a function in that class.