A
A L
Hi,
I using new() from a factory class to create instances of my product
classes. I have made the factory class a friend of each product class
and made the constructors of all product classes "protected" to
prevent their indiscriminate instantiation here and there using new().
However, the Visual C++ compiler says that the product class has no
constructor - even though it has the constructor defined in the
protected section. Any help?
I using new() from a factory class to create instances of my product
classes. I have made the factory class a friend of each product class
and made the constructors of all product classes "protected" to
prevent their indiscriminate instantiation here and there using new().
However, the Visual C++ compiler says that the product class has no
constructor - even though it has the constructor defined in the
protected section. Any help?