-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBebida.h
More file actions
54 lines (44 loc) · 929 Bytes
/
Bebida.h
File metadata and controls
54 lines (44 loc) · 929 Bytes
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
51
52
53
54
#ifndef BEBIDA_H
#define BEBIDA_H
#include "Platillo.h"
#include <string>
class Bebida: public Platillo {
//Atributos del objeto
private:
int mililitros;
bool hielos;
//Metodos del objeto
public:
//getters
bool getHielos();
int getMililitros();
//setters
void setMililitros(int);
void setHielos(bool);
//default
Bebida();
//constructor
Bebida(bool, int, std::string, double);
};
//Constructor default
Bebida::Bebida(){
mililitros=0;
}
// Constructor
Bebida::Bebida(bool _hielos, int _mililitros, std::string _nombre, double _costo):Platillo(_costo,_nombre) {
hielos = _hielos;
mililitros = _mililitros;
}
bool Bebida::getHielos(){
return hielos;
}
int Bebida::getMililitros(){
return mililitros;
}
void Bebida::setHielos(bool _hielos){
hielos = _hielos;
}
void Bebida::setMililitros(int _mililitros){
mililitros = _mililitros;
}
#endif