// PL6/dynarr.cpp // A dynamic array class // 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::cout<<"Error: trying to access array element out of bounds"<