我知道这听起来很傻,我知道C不是面向对象的语言.
但有没有办法在C中实现动态方法调度?我考虑过函数指针,但没有得到完整的想法.
我怎么能实现这个?
c oop function-pointers vtable
c ×1
function-pointers ×1
oop ×1
vtable ×1