Created Brain
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/11/10 11:22:21 by aortigos #+# #+# */
|
||||
/* Updated: 2025/11/10 11:33:52 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/11/10 12:45:21 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -21,3 +21,18 @@ Brain::~Brain()
|
||||
{
|
||||
std::cout << "Brain has been destroyed" << std::endl;
|
||||
}
|
||||
|
||||
Brain::Brain(const Brain &other)
|
||||
{
|
||||
std::cout << "Brain copied" << std::endl;
|
||||
}
|
||||
|
||||
Brain& Brain::operator=(const Brain &other)
|
||||
{
|
||||
std::cout << "Brain copy assignment called" << std::endl;
|
||||
if (this != &other)
|
||||
{
|
||||
|
||||
}
|
||||
return (*this);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/11/10 11:22:17 by aortigos #+# #+# */
|
||||
/* Updated: 2025/11/10 11:32:41 by aortigos ### ########.fr */
|
||||
/* Updated: 2025/11/10 12:43:08 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -24,6 +24,8 @@ class Brain
|
||||
public:
|
||||
Brain();
|
||||
~Brain();
|
||||
Brain(const Brain &other);
|
||||
Brain& operator=(const Brain &other);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user