A, C ++ virtual functions implemented polymorphism
Sign up mode
Second, the base pointer is converted to a subclass pointer
A forced conversion
Third, the error occurs when multiple define links
Header file contains the error function of the realization, with the keyword inline