Polymorphism & Virtual Functions(Chapter 15 of Thinking in C++)
摘要:
To accomplish this, the typical compiler1 creates a single table(called the VTABLE) for each class that contains virtual functions.The compiler places the addresses of the virtual functions for thatparticular class in the VTABLE. In each class with virtual functions,it secretly places a pointer, cal 阅读全文
posted @ 2010-12-05 22:17 Ray Z 阅读(203) 评论(0) 推荐(0)
浙公网安备 33010602011771号