• Generic classes encapsulate operations that are not specific to a particular data type.
  • The most common use for generic classes is with collections like linked lists, hash tables, stacks, queues, trees, and so on.
  • Operations such as adding and removing items from the collection are performed in basically the same way regardless of the type of data being stored.

Example:

class BaseNodeGeneric<T> { }