Emulating inheritance in ANSI-C
Sometimes the cleanest implementation is by taking advantage of inheritance despite the cost of the technique. In this article I'll discuss various implementations with their characteristics. We'll emulate the following code from C# in ANSI-C: