#include ... class B class A { public: A() { b = new B() } ; ~A() ... private: B* b }