#include "Warlock.hpp" Warlock::Warlock(std::string const &name, std::string const &title) : _name(name), _title(title) { std::cout << _name << ": This looks like another boring day.\n"; } Warlock::~Warlock() { std::cout << _name << ": My job here is done!\n"; } std::string const &Warlock::getName() const { return this->_name; } std::string const &Warlock::getTitle() const { return this->_title; } void Warlock::setTitle(std::string const &title) { this->_title = title; } void Warlock::introduce() const { std::cout << _name << ": I am " << _name << ", " << _title << "!\n"; } #pragma once #include class Warlock { private: std::string _name; std::string _title; Warlock(); Warlock(Warlock const &other); Warlock &operator=(Warlock const &other); public: Warlock(std::string const &name, std::string const &title); ~Warlock(); std::string const &getName() const; std::string const &getTitle() const; void setTitle(std::string const &title); void introduce() const; };