Can we make a class copy constructor virtual in C++
问题 Can we make a class copy constructor virtual in C++? How to use? 回答1: No you can't, constructors can't be virtual. C++03 - 12.1 Constructors 4) A constructor shall not be virtual (10.3) or static (9.4). [...] If you need something like this, you can look up the virtual constructor idiom here. 回答2: No you cannot. Furthermore, the whole concept does not make sense. Virtual functions are functions that are dispatched based on the value of an object (the dynamic type of the object). When a