Call C++ constructors in correct order.