33 lines
945 B
C
33 lines
945 B
C
|
|
#ifndef CONTRATOTP_H
|
|||
|
|
#define CONTRATOTP_H
|
|||
|
|
|
|||
|
|
#include <iostream> //cin, cout
|
|||
|
|
#include "Fecha.h"
|
|||
|
|
#include "Contrato.h"
|
|||
|
|
|
|||
|
|
using namespace std;
|
|||
|
|
|
|||
|
|
class ContratoTP: public Contrato {
|
|||
|
|
static int minutosTP;
|
|||
|
|
static float precioTP;
|
|||
|
|
int minutosHablados;
|
|||
|
|
static const float precioExcesoMinutos;
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
ContratoTP(long int dni, Fecha f, int m);
|
|||
|
|
//virtual ~ContratoTP(); //<2F>es necesario? pensar y reflexionad
|
|||
|
|
//ContratoTP(const ContratoTP& c); //<2F>es necesario? pensar y reflexionad
|
|||
|
|
//ContratoTP& operator=(const ContratoTP& c); //<2F>es necesario? pensar y reflexionad
|
|||
|
|
|
|||
|
|
static int getLimiteMinutos() { return ContratoTP::minutosTP; }
|
|||
|
|
static float getPrecio() { return ContratoTP::precioTP; }
|
|||
|
|
static void setTarifaPlana(int m, float p); //el el .cpp se pone la cabecera sin la palabra static
|
|||
|
|
|
|||
|
|
//A RELLENAR POR EL ALUMNO...
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
ostream& operator<<(ostream &s, const ContratoTP &c);
|
|||
|
|
|
|||
|
|
#endif // CONTRATOTP_H
|