// PL6/move.cpp // An example of a move constructor // Niels Walet, last updated 23/02/2020 #include class dynamic_array { private: size_t size {}; double *array {nullptr}; public: dynamic_array() {std::cout<<"Default constructor called"<0) { array=new double[size]; // Copy values into new array for(size_t i{};i0){ array=new double[size]; // Copy values into new array for(size_t i{};i=size) { std::cout<<"Error: trying to access array element out of bounds"<