X Tutup
Skip to content

Commit 8fb0ec1

Browse files
committed
iluwatar#107 Improve Prototype JavaDoc
1 parent c32246e commit 8fb0ec1

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

property/src/main/java/com/iluwatar/property/App.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,21 @@
33
import com.iluwatar.property.Character.Type;
44

55
/**
6-
* Example of Character instantiation using Property pattern (as concept also known like Prototype inheritance).
6+
*
7+
* Example of {@link Character} instantiation using the Property pattern (also known as Prototype inheritance).
8+
* <p>
79
* In prototype inheritance instead of classes, as opposite to Java class inheritance,
8-
* objects are used to create another objects and object hierarchies.
9-
* Hierarchies are created using prototype chain through delegation: every object has link to parent object.
10-
* Any base (parent) object can be amended at runtime (by adding or removal of some property), and all child objects will be affected as result.
10+
* objects are used to create another objects and object hierarchies. Hierarchies are created using prototype chain
11+
* through delegation: every object has link to parent object. Any base (parent) object can be amended at runtime
12+
* (by adding or removal of some property), and all child objects will be affected as result.
13+
*
1114
*/
1215
public class App {
1316

17+
/**
18+
* Program entry point
19+
* @param args command line args
20+
*/
1421
public static void main(String[] args) {
1522
/* set up */
1623
Prototype charProto = new Character();

property/src/test/java/com/iluwatar/property/AppTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
import com.iluwatar.property.App;
66

7+
/**
8+
*
9+
* Application test
10+
*
11+
*/
712
public class AppTest {
813

914
@Test

0 commit comments

Comments
 (0)
X Tutup