#include "Artwork.h" #include #include Artwork::Artwork() : author(""), title(""), description(""), price(0), year(0) {} Artwork::Artwork(std::string author, std::string title, std::string description, int price, int year) : author(author), title(title), description(description), price(price), year(year) {} Artwork::~Artwork() {}; void Artwork::setAuthor(std::string author) {this->author = author;} void Artwork::setTitle(std::string title) {this ->title = title;} void Artwork::setDescription(std::string description) {this->description = description;} void Artwork::setPrice(int price) {this->price = price;} void Artwork::setYear(int year) { this->year = year;} std::string Artwork::getAuthor() { return author; } std::string Artwork::getTitle() { return title; } std::string Artwork::getDescription() { return description; } int Artwork::getPrice() { return price; } int Artwork::getYear() { return year; } std::string Artwork::toString() { return "Author: " + author + "\nTitle: " + title + "\nDescription: " + description + "\nPrice: " + std::to_string(price) + " EUR\nYear: " + std::to_string(year) + "\n\n"; } void Artwork::print() { std::cout << "Author: " << author << "\nTitle: " << title << "\nDescription: " << description << "\nPrice: " << price << " EUR\nYear: " << year << "\n\n"; }