Skip to content

Commit 77ffae5

Browse files
committed
Format active object README.md to display correctly on the web site
1 parent 74abc7a commit 77ffae5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

active-object/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ public abstract class ActiveCreature{
7979
return this.name;
8080
}
8181
}
82-
8382
```
8483

8584
We can see that any class that will extend the ActiveCreature class will have its own thread of control to execute and invocate methods.
8685

8786
For example, the Orc class:
87+
8888
```java
8989
public class Orc extends ActiveCreature {
9090

@@ -96,6 +96,7 @@ public class Orc extends ActiveCreature {
9696
```
9797

9898
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:
99+
99100
```java
100101
public static void main(String[] args) {
101102
var app = new App();
@@ -121,4 +122,4 @@ Now, we can create multiple creatures such as Orcs, tell them to eat and roam an
121122

122123
## Class diagram
123124

124-
![alt text](./etc/active-object.urm.png "Active Object class diagram")
125+
![alt text](./etc/active-object.urm.PNG "Active Object class diagram")

0 commit comments

Comments
 (0)