C++ 中的多型, 在 C 裡基本上就是使用 function pointer 去實作.
例如
class IShape {
public:
virtual void draw() = 0;
};
就是
struct IShape {
void (*draw)();