add: ex02

This commit is contained in:
Camille Chauvet
2023-09-11 16:18:29 +00:00
parent 2fdad9f4de
commit 3990927c54
14 changed files with 281 additions and 26 deletions

View File

@ -8,7 +8,8 @@ Bureaucrat::Bureaucrat()
std::cout << "Bureaucrat()" << std::endl;
}
Bureaucrat::Bureaucrat(const Bureaucrat& src)
Bureaucrat::Bureaucrat(const Bureaucrat& src):
_name(src._name)
{
*this = src;
std::cout << "Bureaucrat(Bureaucrat)" << std::endl;

View File

@ -9,7 +9,8 @@ Form::Form()
std::cout << "Form()" << std::endl;
}
Form::Form(const Form& src)
Form::Form(const Form& src):
_name(src._name)
{
std::cout << "Form(Form)" << std::endl;
*this = src;