End Google Ads 201810 - BS.net 01 --> So class _base is a pure virtual class.

Class _child derives from it and implements the functions.

The code creates an instance of _base and uses it.

Question. It seems that when an instance of a pure virtual base class is created, an instance of its child is in fact created. Is this so?

An observation. VS finds it impossible to debug step into any functions of the _child instance.

Further question. What if you have two descendents from _base. How does the compiler know which one to instantiate?


While I know C++ well, I have never come across this before, and I would never code this way, it looks ugly, is unclear, and makes debugging impossible. (I work mostly in the kernel in C)
==============================

Nothing to say.