From 77ffae5eccf607c03e3849a3b01d6210b786cbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ilkka=20Sepp=C3=A4l=C3=A4?= Date: Sun, 14 Mar 2021 16:26:24 +0200 Subject: [PATCH] Format active object README.md to display correctly on the web site --- active-object/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/active-object/README.md b/active-object/README.md index 108caebe4..6e26a8595 100644 --- a/active-object/README.md +++ b/active-object/README.md @@ -79,12 +79,12 @@ public abstract class ActiveCreature{ return this.name; } } - ``` We can see that any class that will extend the ActiveCreature class will have its own thread of control to execute and invocate methods. For example, the Orc class: + ```java public class Orc extends ActiveCreature { @@ -96,6 +96,7 @@ public class Orc extends ActiveCreature { ``` Now, we can create multiple creatures such as Orcs, tell them to eat and roam and they will execute it on their own thread of control: + ```java public static void main(String[] args) { var app = new App(); @@ -121,4 +122,4 @@ Now, we can create multiple creatures such as Orcs, tell them to eat and roam an ## Class diagram -![alt text](./etc/active-object.urm.png "Active Object class diagram") \ No newline at end of file +![alt text](./etc/active-object.urm.PNG "Active Object class diagram")