Create dangling_pointer_class

The question is why cout program counld not print out expected value of a.data[0].
Since 
IntegerArray b = a;
and
~IntegerArray()
==> so exciting