diff options
Diffstat (limited to '2022-2/L8/mitsuo/LAB08_PREG01/ConReceta.h')
| -rw-r--r-- | 2022-2/L8/mitsuo/LAB08_PREG01/ConReceta.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/2022-2/L8/mitsuo/LAB08_PREG01/ConReceta.h b/2022-2/L8/mitsuo/LAB08_PREG01/ConReceta.h new file mode 100644 index 0000000..f91eb83 --- /dev/null +++ b/2022-2/L8/mitsuo/LAB08_PREG01/ConReceta.h @@ -0,0 +1,30 @@ +/* + * File: ConReceta.h + * Author: mitsuo + * + * Created on 27 November 2022, 11:51 + */ + +#ifndef CONRECETA_H +#define CONRECETA_H + +#include <iostream> +#include "Medicamento.h" + +class ConReceta : public Medicamento { +public: + ConReceta(); + ConReceta(const ConReceta& orig); + virtual ~ConReceta(); + void SetEspecialidad(const char* especialidad); + char* GetEspecialidad() const; + void SetCodmed(int codmed); + int GetCodmed() const; + void write(std::ostream &); +private: + int codmed; // medicoId + char *especialidad; // medicoEsp +}; + +#endif /* CONRECETA_H */ + |
