S
sieg1974
Hi,
I'm learning how to program in C++, and I came up with a couple of
questions.
1. Can I declare a constructor or destructor virtual? If so, please
provide me an example where I could use it.
2. Could a constructor be declared private? If so, how could I
instantiate an object of this class? I think I could use friend
methods to do it, but I'm not sure.
Thanks in advance,
Andre
I'm learning how to program in C++, and I came up with a couple of
questions.
1. Can I declare a constructor or destructor virtual? If so, please
provide me an example where I could use it.
2. Could a constructor be declared private? If so, how could I
instantiate an object of this class? I think I could use friend
methods to do it, but I'm not sure.
Thanks in advance,
Andre