consolidate all repos to one for archive
This commit is contained in:
37
semester_2/programiranje_2/naloga0201/Artwork.h
Normal file
37
semester_2/programiranje_2/naloga0201/Artwork.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user