C++: Initialize a member pointer to null?
I wish to initialize bar to NULL. Is this the best way to do it? It is the correct way. So, yes. Also, is it necessary that the destructor is virtual? No. The destructor only needs to be virtual if you will be inheriting from the Foo class and will be using a Foo pointer … Read more