concept inheritance in category c++

appears as: inheritce
Functional Programming in C++

This is an excerpt from Manning's book Functional Programming in C++.

Figure 9.1 Implementing sum types with inheritance is simple. You can create multiple classes that inherit a common state_t class, and the current state is denoted by a pointer pointing to an instance of one of these classes.

c09_01.png