If you are really interested in virtual constructors, also known as factory function, I would recommend you take a look at Scott Meyers book "Effective C++ (Second Edition)", pp. 149-152.<br>
<br>
He dedicates a few pages to virtual constructors and why you would want to create one. While you can't really put "virtual" on a constructor like you have in your example, the idea is similar. Virtual constructors return pointers to dynamically allocated objects that support the class interface.<br>
<br>
<br>
<br>