module: new module started (05)

This commit is contained in:
Raphael 2025-03-16 14:55:31 +01:00
parent 56057784a8
commit c7a0cde073
4 changed files with 182 additions and 0 deletions

28
cpp05/ex00/Bureaucrat.hpp Normal file
View file

@ -0,0 +1,28 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Bureaucrat.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/16 14:48:33 by rparodi #+# #+# */
/* Updated: 2025/03/16 14:52:32 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include <string>
class Bureaucrat {
public:
Bureaucrat(void);
Bureaucrat(Bureaucrat const &copy);
Bureaucrat& operator=(Bureaucrat const &assign);
~Bureaucrat(void);
std::string getName(void) const;
int getGrade(void) const;
private:
std::string const _name;
int _grade;
};