File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
main/java/com/iluwatar/property
test/java/com/iluwatar/property Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 33import 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 */
1215public 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 ();
Original file line number Diff line number Diff line change 44
55import com .iluwatar .property .App ;
66
7+ /**
8+ *
9+ * Application test
10+ *
11+ */
712public class AppTest {
813
914 @ Test
You can’t perform that action at this time.
0 commit comments