ex02 finished
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
# define AForm_HPP
|
||||
|
||||
# include <iostream>
|
||||
# include "../Bureaucrat/Bureaucrat.hpp"
|
||||
# include <string>
|
||||
|
||||
class Bureaucrat;
|
||||
|
||||
class AForm
|
||||
{
|
||||
@@ -29,7 +31,7 @@ class AForm
|
||||
AForm();
|
||||
AForm(const AForm &other);
|
||||
AForm& operator=(const AForm &other);
|
||||
~AForm();
|
||||
virtual ~AForm();
|
||||
|
||||
AForm(std::string name, int gradeToSign, int gradeToExecute);
|
||||
|
||||
@@ -40,7 +42,7 @@ class AForm
|
||||
|
||||
void beSigned(const Bureaucrat &br);
|
||||
|
||||
virtual void execute(Bureaucrat const &executor) = 0;
|
||||
virtual void execute(Bureaucrat const &executor) const = 0;
|
||||
|
||||
class GradeTooLowException : public std::exception {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user