c++ - Vptr with default constructors vs explicitly declared constructors -



c++ - Vptr with default constructors vs explicitly declared constructors -

the compiler inserts code origin of constructor initializes vptr. operation influenced whether constructor default 1 or explicitly declared? there difference between two?

it inserted, has polymorphism work, @ to the lowest degree way compilers typically have implemented. initialized always, constructors declare (or don't declare) irrelevant.

or, hey, maybe won't (although not know compilers behave way), you need care polymorphism works, , work no matter constructors have declared.

c++ polymorphism vptr

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -