Starting Intern Class
This commit is contained in:
@@ -3,11 +3,41 @@
|
|||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* 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 #+# #+# */
|
/* Created: 2026/02/18 10:36:05 by aortigos #+# #+# */
|
||||||
/* Updated: 2026/02/06 02:28:09 by aortigos ### ########.fr */
|
/* Updated: 2026/02/18 10:36:05 by aortigos ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
#include "Intern.hpp"
|
#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;
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,15 +3,14 @@
|
|||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* 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 #+# #+# */
|
/* Created: 2026/02/18 10:36:05 by aortigos #+# #+# */
|
||||||
/* Updated: 2026/02/06 02:28:09 by aortigos ### ########.fr */
|
/* Updated: 2026/02/18 10:36:05 by aortigos ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
#ifndef INTERN_HPP
|
#ifndef INTERN_HPP
|
||||||
|
|
||||||
# define INTERN_HPP
|
# define INTERN_HPP
|
||||||
|
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
@@ -21,7 +20,10 @@ class Intern
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Intern();
|
||||||
|
Intern(const Intern &other);
|
||||||
|
Intern& operator=(const Intern &other);
|
||||||
|
~Intern();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -4,7 +4,8 @@ SRC = main.cpp \
|
|||||||
Bureaucrat/Bureaucrat.cpp AForm/AForm.cpp \
|
Bureaucrat/Bureaucrat.cpp AForm/AForm.cpp \
|
||||||
ShrubberyCreationForm/ShrubberyCreationForm.cpp \
|
ShrubberyCreationForm/ShrubberyCreationForm.cpp \
|
||||||
RobotomyRequestForm/RobotomyRequestForm.cpp \
|
RobotomyRequestForm/RobotomyRequestForm.cpp \
|
||||||
PresidentialPardonForm/PresidentialPardonForm.cpp
|
PresidentialPardonForm/PresidentialPardonForm.cpp \
|
||||||
|
Intern/Intern.cpp
|
||||||
|
|
||||||
OBJ = $(SRC:.cpp=.o)
|
OBJ = $(SRC:.cpp=.o)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user