aboutsummaryrefslogtreecommitdiff
path: root/week-4/Persoon.h
diff options
context:
space:
mode:
Diffstat (limited to 'week-4/Persoon.h')
-rw-r--r--week-4/Persoon.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/week-4/Persoon.h b/week-4/Persoon.h
new file mode 100644
index 0000000..df4a3f2
--- /dev/null
+++ b/week-4/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;
+};