Implementing basic vtable in C

后端 未结 0 1260
暗喜
暗喜 2021-02-04 14:27

I\'m trying to emulate the most basic (toy) case of a vtable in C. Here is a basic example:

typedef struct Person {
    int id;
    char* name;
} Person;
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题