From 7bcb572ee23a00cb1ae75292b78eb9fb72658b64 Mon Sep 17 00:00:00 2001
From: "Dr. Martin Goik" <goik@hdm-stuttgart.de>
Date: Fri, 4 Dec 2020 10:53:23 +0100
Subject: [PATCH] Adding copy constructor hint.

---
 Doc/Sd1/objectsClasses.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Doc/Sd1/objectsClasses.xml b/Doc/Sd1/objectsClasses.xml
index cd7d5870a..a6cfabfd1 100644
--- a/Doc/Sd1/objectsClasses.xml
+++ b/Doc/Sd1/objectsClasses.xml
@@ -4184,6 +4184,16 @@ seconds = 23</screen></td>
               created it shall be impossible to alter the instance's values
               <abbrev>i.e.</abbrev> changing its state.</para>
 
+              <para>Supply a so called copy constructor to allow for creating
+              a new instance from an existing one:</para>
+
+              <programlisting language="java">/**
+ *  Clone a given instance.
+ *
+ * @param timeperiod Instance to be cloned.
+ */
+public Timeperiod(final Timeperiod timeperiod) { ... }</programlisting>
+
               <para>Use the following tests to check your
               implementation:</para>
 
-- 
GitLab