Starting Intern Class

This commit is contained in:
2026-02-18 10:39:09 +01:00
parent 39ec747514
commit 7539e90e6a
3 changed files with 46 additions and 13 deletions

View File

@@ -1,13 +1,43 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Intern.cpp :+: :+: :+: */
/* Intern.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/15 18:00:27 by aortigos #+# #+# */
/* Updated: 2026/02/06 02:28:09 by aortigos ### ########.fr */
/* Created: 2026/02/18 10:36:05 by aortigos #+# #+# */
/* Updated: 2026/02/18 10:36:05 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#include "Intern.hpp"
//////////////////
// Constructors //
//////////////////
Intern::Intern()
{
// std::cout << "Intern default constructor called" << std::endl;
}
Intern::Intern(const Intern &other)
{
*this = other;
// std::cout << "Intern copy constructor called" << std::endl;
}
Intern& Intern::operator=(const Intern &other)
{
if (this != &other)
{
// Copy attributes here
}
// std::cout << "Intern copy assignment operator called" << std::endl;
return (*this);
}
Intern::~Intern()
{
// std::cout << "Intern destructor called" << std::endl;
}

View File

@@ -1,27 +1,29 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Intern.hpp :+: :+: :+: */
/* Intern.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/15 18:00:27 by aortigos #+# #+# */
/* Updated: 2026/02/06 02:28:09 by aortigos ### ########.fr */
/* Created: 2026/02/18 10:36:05 by aortigos #+# #+# */
/* Updated: 2026/02/18 10:36:05 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef INTERN_HPP
# define INTERN_HPP
# include <iostream>
class Intern
{
private:
public:
private:
public:
Intern();
Intern(const Intern &other);
Intern& operator=(const Intern &other);
~Intern();
};
#endif

View File

@@ -4,7 +4,8 @@ SRC = main.cpp \
Bureaucrat/Bureaucrat.cpp AForm/AForm.cpp \
ShrubberyCreationForm/ShrubberyCreationForm.cpp \
RobotomyRequestForm/RobotomyRequestForm.cpp \
PresidentialPardonForm/PresidentialPardonForm.cpp
PresidentialPardonForm/PresidentialPardonForm.cpp \
Intern/Intern.cpp
OBJ = $(SRC:.cpp=.o)