...

/

Conclusion: A Gentle Introduction to Generics

Conclusion: A Gentle Introduction to Generics

Review the concepts we have covered in this chapter.

We'll cover the following...

Concluding remarks

We prefer to use types, but we can just as easily use generics with interfaces as well:

interface LinkedListNode<T> {
value: T;
next?: LinkedListNode<T>;
}
Implementation of the LinkedListNode interface
...