如何虚拟方法调用在 C++ 中工作?
通过虚拟表。
读这篇文章,http://en.wikipedia.org/wiki/Virtual_table http://en.wikipedia.org/wiki/Virtual_table.
我可以在这里解释,但维基百科比我做得更好。