-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSoftware.h
49 lines (42 loc) · 1.12 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
#include<iostream>
using namespace std;
class Software : public Material
{
private:
int Version;
string SO;
public:
Software();
Software(int _idMaterial,string _titulo,int _Version,string _SO);
//Metodos Get
int getVersion(){return Version;};
string getSO(){return SO;};
//Metodos Set
void setVersion(int _Version){Version=_Version;};
void setSO(string _SO){SO=_SO;};
//Metodos abstractos
void muestraDatos();
int cantidadDiasPrestamo();
};
Software::Software():Material()
{
Version=1;
SO="Unknown";
}
Software::Software(int _idMaterial,string _titulo,int _Version,string _SO):Material( _idMaterial, _titulo)
{
Version=_Version;
SO=_SO;
}
void Software::muestraDatos()
{
cout<< "\n--------Datos del Software---------\n\n";
cout<< "ID: "<<Material::idMaterial<<endl;
cout<< "Titulo: "<<Material::titulo<<endl;
cout<< "Versión: " << Version <<endl;
cout<< "Sistema Operativo: " << SO<< endl;
}
int Software::cantidadDiasPrestamo()
{
return 1;
}