From c8cef299998ef74c16110c3ffaef992f9ab45cb9 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 10 Oct 2023 16:08:45 +0200 Subject: [PATCH] add destructor and copy constructor --- cpp/includes/Example.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/includes/Example.hpp b/cpp/includes/Example.hpp index a2a440f..863c983 100644 --- a/cpp/includes/Example.hpp +++ b/cpp/includes/Example.hpp @@ -4,7 +4,9 @@ #include struct Example { - Example(); + Example(); // constructor + Example(const Example &); // copy constructor + virtual ~Example(); // destructor }; #endif