如何用C语言实现Vtable和继承? [英] How To implement Vtable and Inheritance in C language?
本文介绍了如何用C语言实现Vtable和继承?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道C ++中的热门虚拟表格。
C中的继承和多态性
在上面的链接中,Vtable没有用C语言实现。
解决方案
接受你的选择 [ ^ ]。
< blockquote>这里有几个链接开始:
这个很棒:
http://milotshala.wordpress.com/2012/02/21/virtual-functions-in -c / [ ^ ]
https://www.daniweb.com/software-development/c/threads/228277/implementing-vtable-in-c [ ^ ]
Google有更多。
I want to know hot virtual table look likes in C++.
Inheritance and Polymorphism in C
In above link Vtable is not implementedin C language.
解决方案
Take your pick[^].
Here are a couple of links to begin:
This one is excellent:
http://milotshala.wordpress.com/2012/02/21/virtual-functions-in-c/[^]
https://www.daniweb.com/software-development/c/threads/228277/implementing-vtable-in-c[^]
Google has plenty more.
这篇关于如何用C语言实现Vtable和继承?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文