GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cpp_modules/cpp05/ex02/src/PresidentialPardonForm.cpp at master · Thopterek/cpp_modules Expand file tree/ Copy pathPresidentialPardonForm.cppMore file actions 51 lines (43 loc) · 2.01 KB / Copy pathPresidentialPardonForm.cppFile metadata and controls51 lines (43 loc) · 2.01 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 /* ************************************************************************** */ /* */ /* ::: :::::::: */ /* PresidentialPardonForm.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: ndziadzi <[email protected]. +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/04/22 12:08:41 by ndziadzi #+# #+# */ /* Updated: 2025/04/22 12:16:18 by ndziadzi ### ########.fr */ /* */ /* ************************************************************************** */ #include "../inc/PresidentialPardonForm.hpp" PresidentialPardonForm::PresidentialPardonForm() : AForm("PresidentialPardonForm", 25, 5), target("") { std::cout << "PPF default constructor, most likely never called" << std::endl; } PresidentialPardonForm::PresidentialPardonForm(std::string set_target) : AForm("PresidentialPardonForm", 25, 5), target(set_target) { std::cout << "PPF construtor with name per subject" << std::endl; } PresidentialPardonForm::~PresidentialPardonForm() { std::cout << "PPF destructor" << std::endl; } PresidentialPardonForm::PresidentialPardonForm(const PresidentialPardonForm &other) : AForm(other), target(other.target) { std::cout << "PPF copy constructor" << std::endl; } PresidentialPardonForm &PresidentialPardonForm::operator=(const PresidentialPardonForm &other) { if (this != &other) { target = other.getTarget(); } std::cout << "PPF copy assingment operator" << std::endl; return (*this); } void PresidentialPardonForm::action() const { std::cout << getTarget() << " has been pardoned by Zaphod Beeblebrox" << std::endl; } std::string const &PresidentialPardonForm::getTarget() const { return (target); } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |