ex05: remove const to respect the subject
This commit is contained in:
parent
a7e4a9cd75
commit
5522ebf3ba
@ -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 didn’t put enough bacon in my burger ! If you did, I wouldn’t 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. I’ve 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;
|
||||
}
|
||||
|
@ -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)();
|
||||
|
Loading…
Reference in New Issue
Block a user