-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpago.h
50 lines (41 loc) · 754 Bytes
/
pago.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
#ifndef PAGO_H
#define PAGO_H
#include <string>
using namespace std;
class Pago{
protected:
int id;
string tipo;
double monto;
public:
Pago();
Pago( double m , int iD, string t);
int getId();
string getTipo();
double getMonto();
void setId(int newId);
void setMonto(double newMonto);
virtual void pagar()= 0;
virtual string toString()=0;
};
Pago :: Pago (){
monto = 0;
id = 0;
}
Pago :: Pago (double m , int iD,string t):monto(m),id(iD),tipo(t){}
int Pago :: getId(){
return id;
}
string Pago :: getTipo(){
return tipo;
}
double Pago :: getMonto(){
return monto;
}
void Pago :: setId( int newId){
id = newId;
}
void Pago :: setMonto(double newMonto){
monto = newMonto;
}
#endif