As a beginner,it's a problem to know the style of Class' struct in Heap.so i don't know.
but we can assume that it's setup by the data which is static or protected and private or public.
so the class copy constructor copy the data struct to the new class object.
now we know if there 's a pointer in this struct problem comes,when copy the data struct, it copies the pointer's address to the new object,when destructor the new object will release the resourse that be shared by the new and old object.
and we should know that constructor and destructor's sequence in class inherit.
the inherit must load the base class and when destructor the sequence is opposite.
all this is cause of priority.