我读到虚拟构造函数用于实现一些设计模式,但不了解任何虚拟构造函数的需要.那么什么是虚拟构造函数以及我们为什么真正需要它们呢?
oop virtual constructor
constructor ×1
oop ×1
virtual ×1