How does abstract classes and dynamic storage differ in C++ from Java?

thanks