ex05: remove const to respect the subject

This commit is contained in:
Camille Chauvet 2023-07-31 17:48:23 +02:00
parent a7e4a9cd75
commit 5522ebf3ba
2 changed files with 9 additions and 9 deletions

View File

@ -25,22 +25,22 @@ void Harl::complain(std::string level)
}
}
void Harl::debug() const
void Harl::debug()
{
std::cout << "I love having extra bacon for my 7XL-double-cheese-triple-pickle-special-ketchup burger. I really do !" << std::endl;
}
void Harl::info() const
void Harl::info()
{
std::cout << "I cannot believe adding extra bacon costs more money. You didnt put enough bacon in my burger ! If you did, I wouldnt be asking for more !" << std::endl;
}
void Harl::warning() const
void Harl::warning()
{
std::cout << "I think I deserve to have some extra bacon for free. Ive been coming for years whereas you started working here since last month." << std::endl;
}
void Harl::error() const
void Harl::error()
{
std::cout << "This is unacceptable ! I want to speak to the manager now." << std::endl;
}

View File

@ -5,13 +5,13 @@
class Harl
{
private:
void debug() const;
void info() const;
void warning() const;
void error() const;
void debug();
void info();
void warning();
void error();
public:
void complain(std::string level);
};
typedef void (Harl::*HarlMethod)() const;
typedef void (Harl::*HarlMethod)();