-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoftware.h
71 lines (55 loc) · 1.2 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
62
63
64
65
66
67
68
69
70
71
#include <iostream>
#include <string>
#include "Material.h"
using namespace std;
//Clase hija de Material
class Software : public Material
{
public:
//Defaults
Software();
Software(int,std::string, int, std::string);
//setters
void setversion(int version);
void setSO(string SO);
//getters
int getversion();
string getSO();
//Los que se deben de incluir
void muestraDatos();
int cantidadDiasPrestamo();
int getidMaterial();
std::string gettitulo();
protected:
private:
int version;
string SO;
};
Software :: Software(){
version = 0;
SO="";
}
Software :: Software(int _idMaterial, std::string _titulo,int _version, std::string _SO){
idMaterial = _idMaterial;
titulo = _titulo;
version = _version;
SO = _SO;
}
void Software :: setversion(int version) {
this->version=version;
}
void Software :: setSO(string SO){
this ->SO=SO;
}
int Software :: getversion(){
return version;
}
string Software :: getSO(){
return SO;
}
void Software :: muestraDatos() {
std::cout<< version << " " << SO <<'\n';
}
int Software ::cantidadDiasPrestamo(){
return 1;
}