http://stackoverflow.com/questions/2391679/why-do-we-need-virtual-methods-in-c
Basic idea: when mark a method as virtual in a parent class, the compiler will check the method in the child class firstly.
时间: 2024-10-23 21:18:02
http://stackoverflow.com/questions/2391679/why-do-we-need-virtual-methods-in-c
Basic idea: when mark a method as virtual in a parent class, the compiler will check the method in the child class firstly.