aboutsummaryrefslogtreecommitdiff
path: root/week11/Exercise08/Link.h
diff options
context:
space:
mode:
Diffstat (limited to 'week11/Exercise08/Link.h')
-rw-r--r--week11/Exercise08/Link.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/week11/Exercise08/Link.h b/week11/Exercise08/Link.h
new file mode 100644
index 0000000..4acb312
--- /dev/null
+++ b/week11/Exercise08/Link.h
@@ -0,0 +1,19 @@
+#pragma once
+#include "Message.h"
+
+class Link : public Message {
+ char* address;
+
+ void free();
+ void copyFrom(const Link& other);
+
+public:
+ Link();
+ virtual ~Link() override;
+ Link(const Link& other);
+ Link& operator=(const Link& other);
+ Link(Link&& other);
+ Link& operator=(Link&& other);
+
+ virtual unsigned size() override;
+};