1
0
This repository has been archived on 2025-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
CPP_Module_04/ex03/AMateria.cpp

37 lines
1.4 KiB
C++
Raw Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* AMateria.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/09 11:24:41 by adjoly #+# #+# */
/* Updated: 2024/12/10 12:28:09 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "AMateria.hpp"
#include "Log.hpp"
AMateria::AMateria(void) : _type("") {
log("", "AMateria", "", "default constructor called");
}
AMateria::AMateria(std::string const &type) {
log("", "AMateria", "", "constructor called");
}
AMateria::~AMateria(void) {
log("", "AMateria", "", "destructor called");
}
AMateria &AMateria::operator=(const AMateria &cpy) {
log("", "AMateria", "", "copy assignement constructor called");
if (this != &cpy) {
_type = cpy._type;
}
return (*this);
}
std::string const &AMateria::getType(void) const { return (_type); }