-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBD.cpp
More file actions
35 lines (25 loc) · 819 Bytes
/
Copy pathBD.cpp
File metadata and controls
35 lines (25 loc) · 819 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
35
//
// Created by Rom on 11/01/2019.
//
#include "BD.h"
#include <iostream>
#include <string>
using namespace std;
BD::BD(int code, string auteur, string titre, string editeur, string isbn,string public_destine, string dessinateur)
: Livre(code, auteur, titre, editeur, isbn, public_destine), dessinateur(dessinateur){
this->type = Livre::BD;
}
BD::BD(const BD* bd) : Livre(bd->getCode(), bd->getAuteur(), bd->getTitre(), bd->getEditeur(), bd->getIsbn(), bd->public_destine), dessinateur(bd->getDessinateur())
{
this->type = Livre::BD;
}
const string &BD::getDessinateur() const {
return dessinateur;
}
void BD::setDessinateur(const string &dessinateur) {
BD::dessinateur = dessinateur;
}
void BD::affiche(){
Livre::affiche();
cout << " | Dessinateur : " << getDessinateur();
}