Submitted Questions

  • Virtual Constructor

    Why constructor cannot be virtual in C++?

    James Thompson

    • Aug 23rd, 2016

    Because the virtual pointer table isnt initialised till after the constructor is complete.

    Aarish

    • Apr 20th, 2016

    Advanced C++ | Virtual Constructor Can we make a class constructor virtual in C++ to create polymorphic objects? No. C++ being static typed (the purpose of RTTI is different) language, it is meaningl...