Call
new B();
allows two things:
- selection using the new () operator (either global or a specific class, possibly a placement with syntax
new (xxx) B()) - .
, delete. , , , :: operator delete(). delete x; delete[] x; , new.
, B not, ( B B) delete. , , , B.