Starting Intern Class
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user