Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit77ffae5

Browse files
committed
Format active object README.md to display correctly on the web site
1 parent74abc7a commit77ffae5

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
returnthis.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
publicclassOrcextendsActiveCreature {
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
publicstaticvoid main(String[] args) {
101102
var app=newApp();
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp