diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-11-09 11:48:12 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-11-09 11:48:12 +0100 |
commit | ffae2cb77bfb3263146a2de0deedf6528d4df461 (patch) | |
tree | 88e4b61087069f8ce5badadbc6264d20b8a051d5 /oop1w4/Persoon.h | |
parent | d797758769d033c64babdf77ea6b64262f792b23 (diff) |
repository aanpassen voor oop2
Diffstat (limited to 'oop1w4/Persoon.h')
-rw-r--r-- | oop1w4/Persoon.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/oop1w4/Persoon.h b/oop1w4/Persoon.h new file mode 100644 index 0000000..df4a3f2 --- /dev/null +++ b/oop1w4/Persoon.h @@ -0,0 +1,16 @@ +#pragma once + +#include <string> + +class Persoon { + public: + Persoon(std::string naam); + const std::string& getNaam() const; + int getLeeftijd() const; + void setLeeftijd(int leeftijd); + bool operator < (const Persoon& other) const; + + private: + std::string naam; + int leeftijd; +}; |