From e1dc8dba2c6c749ea8ebc5defee2b290416e8c56 Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Mon, 5 Feb 2018 21:17:29 +0100 Subject: [PATCH] Correction to https://bb.mi.hdm-stuttgart.de/topic/231/slide-implementation-by-minutes-only/2 --- Doc/Sd1/objectsClasses.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/Sd1/objectsClasses.xml b/Doc/Sd1/objectsClasses.xml index 8c1599dac..0587d2c8f 100644 --- a/Doc/Sd1/objectsClasses.xml +++ b/Doc/Sd1/objectsClasses.xml @@ -1887,7 +1887,7 @@ public class Time { import hour_second.direct.Time; public class DirectAccess { - Time time; + Time time = new Time(); void init() { time.hour = 17; time.minute = 45; @@ -1905,7 +1905,7 @@ public class Time { }</programlisting><programlisting language="java">package hour_second; import hour_second.setter.Time; public class SetterAccess { - Time time; + Time time = new Time(); void init() { time.setTime(17, 45);} }</programlisting></td> </tr> @@ -1936,7 +1936,7 @@ public class SetterAccess { </itemizedlist> </figure> - <figure xml:id="sd1_fig_implementJusSeconds"> + <figure xml:id="sd1_fig_implementJustSeconds"> <title>Implementation by minutes only</title> <informaltable border="1"> @@ -1948,7 +1948,7 @@ public class Time { }</programlisting><programlisting language="java">package only_minute; import only_minute.direct.Time; public class DirectAccess { - Time time; + Time time = new Time(); void init() { <emphasis role="red">time.minute = 1065;</emphasis>// 17:45 } -- GitLab