From 47f3c11851df73e54378231d608bee2e37746615 Mon Sep 17 00:00:00 2001 From: starnakin Date: Tue, 12 Sep 2023 16:09:03 +0200 Subject: [PATCH] put all in public --- ex02/src/PresidentialPardonForm.hpp | 13 +++++++------ ex02/src/RobotomyRequestForm.hpp | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/ex02/src/PresidentialPardonForm.hpp b/ex02/src/PresidentialPardonForm.hpp index 87c78c9..42ec4f1 100644 --- a/ex02/src/PresidentialPardonForm.hpp +++ b/ex02/src/PresidentialPardonForm.hpp @@ -4,12 +4,13 @@ class PresidentialPardonForm: public AForm { - PresidentialPardonForm(); - PresidentialPardonForm(const std::string& target); - PresidentialPardonForm(const PresidentialPardonForm& src); - ~PresidentialPardonForm(); + public: + PresidentialPardonForm(); + PresidentialPardonForm(const std::string& target); + PresidentialPardonForm(const PresidentialPardonForm& src); + ~PresidentialPardonForm(); - PresidentialPardonForm& operator=(const PresidentialPardonForm& src); + PresidentialPardonForm& operator=(const PresidentialPardonForm& src); - void execute(const Bureaucrat& exec) const; + void execute(const Bureaucrat& exec) const; }; diff --git a/ex02/src/RobotomyRequestForm.hpp b/ex02/src/RobotomyRequestForm.hpp index ea09d7e..a31a806 100644 --- a/ex02/src/RobotomyRequestForm.hpp +++ b/ex02/src/RobotomyRequestForm.hpp @@ -4,12 +4,13 @@ class RobotomyRequestForm: public AForm { - RobotomyRequestForm(); - RobotomyRequestForm(const std::string& target); - RobotomyRequestForm(const RobotomyRequestForm& src); - ~RobotomyRequestForm(); + public: + RobotomyRequestForm(); + RobotomyRequestForm(const std::string& target); + RobotomyRequestForm(const RobotomyRequestForm& src); + ~RobotomyRequestForm(); - RobotomyRequestForm& operator=(const RobotomyRequestForm& src); + RobotomyRequestForm& operator=(const RobotomyRequestForm& src); - void execute(const Bureaucrat& exec) const; + void execute(const Bureaucrat& exec) const; };