concept inheritance in category c++
appears as: inheritce

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_tclass, and the current state is denoted by a pointer pointing to an instance of one of these classes.![]()