mise en page

This commit is contained in:
lenovo
2022-12-09 13:39:46 +01:00
parent c91d23a5d4
commit fecde1a8b1
12 changed files with 104 additions and 45 deletions

View File

@@ -14,20 +14,32 @@ class Warlock {
std::string title;
public:
Warlock(std::string const & name, std::string const & title) {
Warlock(std::string const & name, std::string const & title)
{
this->name = name;
this->title = title;
std::cout << this->name << ": This looks like another boring day.\n";
};
~Warlock() {
~Warlock()
{
std::cout << this->name << ": My job here is done!\n";
};
std::string const & getName() const {return (this->name);};
std::string const & getTitle() const {return (this->title);};
void setTitle(std::string const & title) {this->title = title;};
std::string const & getName() const
{
return (this->name);
};
std::string const & getTitle() const
{
return (this->title);
};
void setTitle(std::string const & title)
{
this->title = title;
};
void introduce() const {
void introduce() const
{
std::cout << this->name << ": I am " << this->name << ", " << this->title << "!\n";
};
};