This commit is contained in:
Angel Ortigosa Perez
2025-09-07 10:02:26 +02:00
commit 95c25afc03
8 changed files with 438 additions and 0 deletions

68
ex01/Contact/Contact.cpp Normal file
View File

@@ -0,0 +1,68 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Contact.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/09/04 00:27:59 by aortigos #+# #+# */
/* Updated: 2025/09/05 16:16:35 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#include "Contact.hpp"
Contact::Contact()
{
this->name = "NULL";
}
std::string Contact::getName()
{
return (this->name);
}
std::string Contact::getSurname()
{
return (this->surname);
}
std::string Contact::getNickname()
{
return (this->nickname);
}
std::string Contact::getPhoneNumber()
{
return (this->phoneNumber);
}
std::string Contact::getSecret()
{
return (this->secret);
}
void Contact::setName(std::string str)
{
this->name = str;
}
void Contact::setSurname(std::string str)
{
this->surname = str;
}
void Contact::setNickname(std::string str)
{
this->nickname = str;
}
void Contact::setPhoneNumber(std::string str)
{
this->phoneNumber = str;
}
void Contact::setSecret(std::string str)
{
this->secret = str;
}