summaryrefslogtreecommitdiff
path: root/2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.h
diff options
context:
space:
mode:
authorMitsuo Tokumori <rtokumori@pucp.edu.pe>2022-11-27 13:57:46 -0500
committerMitsuo Tokumori <rtokumori@pucp.edu.pe>2022-11-27 13:57:46 -0500
commit337c2e523dc1a849804e0749fc85e2fb8bfa53a3 (patch)
tree50d9c41d7eec8695079f8d0b26661c79e0de2bef /2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.h
parent2202706efaf7a067af0495d531998b8ad8b86a92 (diff)
Add enunciados, add sol to L8
Diffstat (limited to '2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.h')
-rw-r--r--2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.h b/2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.h
new file mode 100644
index 0000000..e31d151
--- /dev/null
+++ b/2022-2/L8/mitsuo/LAB08_PREG01/Medicamento.h
@@ -0,0 +1,32 @@
+/*
+ * File: Medicamento.h
+ * Author: mitsuo
+ *
+ * Created on 27 November 2022, 11:49
+ */
+
+#ifndef MEDICAMENTO_H
+#define MEDICAMENTO_H
+
+class Medicamento {
+public:
+ Medicamento();
+ Medicamento(const Medicamento& orig);
+ virtual ~Medicamento();
+ void SetCantidad(int cantidad);
+ int GetCantidad() const;
+ void SetNombre(const char* nombre);
+ char* GetNombre() const;
+ void SetCodigo(int codigo);
+ int GetCodigo() const;
+
+private:
+ int codigo;
+ char *nombre;
+ int cantidad;
+ double precio;
+ int fecha;
+};
+
+#endif /* MEDICAMENTO_H */
+