+ Reply to Thread
Results 1 to 2 of 2

Thread: Why do we not have a virtual constructor in C++?

  1. #1

    Why do we not have a virtual constructor in C++?

    Is there any reason that we do not have virtual constructor?

    Please provide some explanation.

  2. #2
    Constructor constructs a object.

    In this stage it creates a virtual table.

    If constructor itself be a virtual then who will create virtual table?

    I can think of this one reason for this.

    Hope this helps.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts