terminado parte1

This commit is contained in:
Pablo
2025-11-09 22:10:03 +01:00
parent a9df9ab4f9
commit d90429a4d9
10 changed files with 43 additions and 46 deletions

View File

@@ -11,7 +11,7 @@ class Cliente {
char *nombre;
Fecha fechaAlta;
public:
Cliente(long int d, char *nom, Fecha f);
Cliente(long int d, const char *nom, Fecha f);
virtual ~Cliente();
Cliente& operator=(const Cliente& c);
@@ -19,10 +19,10 @@ public:
const char* getNombre() const { return nombre; } //VIP devolver un puntero constante para evitar que desde el main() se puede modificar el nombre
Fecha getFecha() const { return fechaAlta; }
void setNombre(char *nom);
void setNombre(const char *nom);
void setFecha(Fecha f);
bool operator==(Cliente c) const; // if (c1 ===c2)
bool operator==(const Cliente& c) const; // if (c1 ===c2)
};