-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoman.cpp
More file actions
34 lines (26 loc) · 818 Bytes
/
Copy pathRoman.cpp
File metadata and controls
34 lines (26 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// Created by User on 13/01/2019.
//
#include "Roman.h"
#include <iostream>
#include <string>
using namespace std;
Roman::Roman(int code, string auteur, string titre, string editeur, string isbn,string public_destine, string genre)
: Livre(code, auteur, titre, editeur, isbn, public_destine) {
this->genre = genre;
this->type = Livre::ROMAN;
}
Roman::Roman(const Roman* roman) : Livre(roman->getCode(), roman->getAuteur(), roman->getTitre(), roman->getEditeur(), roman->getIsbn(), roman->public_destine), genre(roman->getGenre())
{
this->type = Livre::ROMAN;
}
const string &Roman::getGenre() const {
return genre;
}
void Roman::setGenre(const string &genre) {
Roman::genre = genre;
}
void Roman::affiche() {
Livre::affiche();
cout << " | Genre :" << getGenre() <<endl;
}