// PL6/shallow.cpp // An example of defining an assignment operator // Niels Walet, last updated 23/02/2019 #include class dynamic_array { private: size_t size {}; double *array {nullptr}; public: dynamic_array() {std::cout<<"Default constructor called"<=size) { std::cerr<<"Error: trying to access array element out of bounds"<