mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 18:18:45 +00:00
Improve Property Javadoc
This commit is contained in:
1 parent
98aa28d94e
commit
40e378c1f3
1 file changed
+3
-1
@@ -4,12 +4,14 @@ import com.iluwatar.property.Character.Type;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Example of {@link Character} instantiation using the Property pattern (also known as Prototype inheritance).
|
* The Property pattern is also known as Prototype inheritance.
|
||||||
* <p>
|
* <p>
|
||||||
* In prototype inheritance instead of classes, as opposite to Java class inheritance,
|
* In prototype inheritance instead of classes, as opposite to Java class inheritance,
|
||||||
* objects are used to create another objects and object hierarchies. Hierarchies are created using prototype chain
|
* objects are used to create another objects and object hierarchies. Hierarchies are created using prototype chain
|
||||||
* through delegation: every object has link to parent object. Any base (parent) object can be amended at runtime
|
* through delegation: every object has link to parent object. 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.
|
* (by adding or removal of some property), and all child objects will be affected as result.
|
||||||
|
* <p>
|
||||||
|
* In this example we demonstrate {@link Character} instantiation using the Property pattern.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class App {
|
public class App {
|
||||||
|
|||||||
Reference in new issue
Block a user