38 lines
752 B
C++
38 lines
752 B
C++
#ifndef NALOGA0201_ARTWORK_H
|
|
#define NALOGA0201_ARTWORK_H
|
|
|
|
#include <string>
|
|
|
|
class Artwork {
|
|
private:
|
|
std::string author, title, description;
|
|
int price, year;
|
|
public:
|
|
Artwork(); //constructor
|
|
Artwork(std::string author, std::string title, std::string description, int price, int year);
|
|
|
|
~Artwork(); //destructor
|
|
//Methods
|
|
|
|
void setAuthor(std::string);
|
|
void setTitle(std::string);
|
|
void setDescription(std::string);
|
|
void setPrice(int);
|
|
void setYear(int);
|
|
|
|
std::string getAuthor();
|
|
|
|
std::string getTitle();
|
|
|
|
std::string getDescription();
|
|
|
|
int getPrice();
|
|
int getYear();
|
|
|
|
std::string toString();
|
|
|
|
void print();
|
|
};
|
|
|
|
#endif //NALOGA0201_ARTWORK_H
|