Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: c++builder
Hi There,
can we declare a virtual constructor?
 
if i declare virtual contructor compiler should through error?
 
should i able to override.
 
Regards,
Ranjith
Posted 23-Dec-12 21:40pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

No, you cannot declare a virtual constructor (see, for instance, here: "Why do we not have a virtual constructor in C++?" at Stack Overflow[^]).
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 680
1 OriginalGriff 379
2 Manas Bhardwaj 350
3 Abhinav S 293
4 Sampath Lokuge 245
0 Sergey Alexandrovich Kryukov 7,647
1 OriginalGriff 4,287
2 Peter Leow 3,681
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 24 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid