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

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -