summaryrefslogtreecommitdiffstats
path: root/2022-2/L10/mitsuo/Medicamento.h
blob: 46ad4dcf4ed836d6849dc4dd7bee7d9da3874123 (plain)
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
/* 
 * File:   Medicamento.h
 * Author: mitsuo
 *
 * Created on 02 December 2022, 12:31
 */

#ifndef MEDICAMENTO_H
#define MEDICAMENTO_H

#include <iostream>

class Medicamento {
public:
    Medicamento();
    Medicamento(const Medicamento& orig);
    virtual ~Medicamento();
    void setPrecio(double precio);
    double getPrecio() const;
    
    int getCodigo() const;
    
    virtual int lee(std::istream &input);
    virtual void imprime(std::ostream &output);
    virtual void actualiza(std::istream &input);
private:
    int codigo;
    char * nombre;
    int stock;
    double precio;
};

#endif /* MEDICAMENTO_H */