「🎉」 init: hello world !
This commit is contained in:
34
ex02/PresidentialPardonForm.cpp
Normal file
34
ex02/PresidentialPardonForm.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "PresidentialPardonForm.hpp"
|
||||
#include "AForm.hpp"
|
||||
|
||||
PresidentialPardonForm::PresidentialPardonForm(void): AForm("PresidentialPardonForm", 25, 5) {
|
||||
_log("➕", "PresidentialPardonForm", "", "default constructor called");
|
||||
}
|
||||
|
||||
PresidentialPardonForm::PresidentialPardonForm(const PresidentialPardonForm &cpy): AForm(cpy) {
|
||||
_log("➕", "PresidentialPardonForm", "", "copy constructor called");
|
||||
if (this != &cpy)
|
||||
*this = cpy;
|
||||
}
|
||||
|
||||
PresidentialPardonForm::PresidentialPardonForm(std::string target): AForm(target, 25, 5) {
|
||||
_log("➕", "PresidentialPardonForm", "", "target constructor called");
|
||||
}
|
||||
|
||||
PresidentialPardonForm::~PresidentialPardonForm(void) {
|
||||
_log("➖", "PresidentialPardonForm", "", "destructor called");
|
||||
}
|
||||
|
||||
PresidentialPardonForm &
|
||||
PresidentialPardonForm::operator=(const PresidentialPardonForm &cpy) {
|
||||
_log("➕", "PresidentialPardonForm", "",
|
||||
"copy assignement constructor called");
|
||||
(void)cpy;
|
||||
return *this;
|
||||
}
|
||||
|
||||
void PresidentialPardonForm::_exec(const Bureaucrat &b) const {
|
||||
(void) b;
|
||||
std::cout << this->getName() << " has been pardoned by Zaphod Beeblebroxm ggs..." << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user