-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathObra.cpp
60 lines (52 loc) · 1017 Bytes
/
Obra.cpp
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#include <iostream>
#include <string>
using namespace std;
#include "Obra.h"
Obra::Obra(const string &n, int nf,const string &p ,const string &tp, int q):nome(n),numeroFuncionario(nf),proprietario(p),tipoObra(tp), quantf(q)
{
}
Obra::~Obra(void)
{
cout << "Destruction" << endl;
}
void Obra::setNome(const string &n)
{
nome = n;
}
string Obra::getNome() const
{
return nome;
}
string Obra::getProprietario() const
{
return proprietario;
}
void Obra::setNumeroFuncionario(int nf)
{
numeroFuncionario = nf;
}
int Obra::getNumeroFuncionario() const
{
return numeroFuncionario;
}
void Obra::setQuantf(int q)
{
quantf = q;
}
int Obra::getQuantf()
{
return quantf;
}
void Obra::setTipoObra(const string &tp)
{
tipoObra = tp;
}
string Obra::getTipoObra() const
{
return tipoObra;
}
void Obra::imprime() const
{
cout << "\n------------Obra--------------";
cout << "\nNome: " << nome << "\nnumero de Funcionarios necessarios "<< numeroFuncionario << "\ntipo de obra: " << tipoObra << endl;
}