#include "Product.h" #include Product::Product() : Product("") {} Product::Product(const char* name) { this->name = new char[strlen(name) + 1]; strcpy(this->name, name); } Product::~Product() { delete[] this->name; }