Polymorphism is one of the most important characteristic properties in object-oriented programming methodology,yet,analysis of basic runtime principle of virtual function is insufficient in current textbook and may lead to a bad effectiveness.By means of disassembler and employing case-driven method,it is good for students to understand the basic runtime mechanism of virtual function.%多态性是面向对象程序设计方法学的重要特征之一,其中,运行时多态的语法规则对初学者难以掌握。利用反汇编手段,设计虚函数实现运行时多态的教学驱动案例,对加深学生理解虚函数实现运行时多态的基本原理和运行机制,具有良好的效果。
展开▼