consolidate all repos to one for archive
This commit is contained in:
22
semester_2/programiranje_2/naloga1001/Literature.h
Normal file
22
semester_2/programiranje_2/naloga1001/Literature.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef NALOGA0201_LITERATURE_H
|
||||
#define NALOGA0201_LITERATURE_H
|
||||
|
||||
#include "Artwork.h"
|
||||
#include <iostream>
|
||||
|
||||
enum class LiteratureType {
|
||||
Drama, Biography, Poetry, Prose, ScienceFiction,
|
||||
};
|
||||
|
||||
class Literature: public Artwork {
|
||||
private:
|
||||
LiteratureType material;
|
||||
public:
|
||||
Literature(std::string title, std::string description, int price, int year, Artist *artist, double width, double height, double depth, LiteratureType material);
|
||||
std::string getMaterial() const;
|
||||
std::string toString() const override;
|
||||
void print() const;
|
||||
};
|
||||
|
||||
|
||||
#endif //NALOGA0201_LITERATURE_H
|
||||
Reference in New Issue
Block a user