-
Notifications
You must be signed in to change notification settings - Fork 0
/
Software.h
61 lines (49 loc) · 1.08 KB
/
Software.h
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
61
#include <iostream>
#ifndef Software_H_
#define Software_H_
#include "Material.h"
using namespace std;
class Software : public Material
{
public:
Software();
Software(string sTitulo, int idMaterial, string sistemaOper);
void muestra();
int cantidadDiasPrestamo();
void setSistema(string sistemaOper);
string getSistema();
private:
string sistemaOper;
};
//constructor default
Software :: Software ()
{
sTitulo = " ";
idMaterial = 0;
sistemaOper = " ";
}
//constructor con parametros
Software :: Software(string sTitulo, int idMaterial, string sistemaOper)
{
this ->sTitulo = sTitulo;
this ->idMaterial = idMaterial;
this ->sistemaOper = sistemaOper;
}
void Software::muestra()
{
cout << "Software\n";
cout << idMaterial << " " << sTitulo << " " << sistemaOper;
}
int Software::cantidadDiasPrestamo()
{
return 1;
}
void Software::setSistema(string sistemaOper)
{
this -> sistemaOper = sistemaOper;
}
string Software::getSistema()
{
return sistemaOper;
}
#endif