// PL6/shallow.cpp // An example of a shallow copy // 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"<=size) { std::cout<<"Error: trying to access array element out of bounds"<