ex02 finished

This commit is contained in:
2026-02-18 00:16:54 +01:00
parent c233d14af7
commit f96fb516ff
10 changed files with 314 additions and 10 deletions

View File

@@ -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: