mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 14:58:39 +00:00
5cf2fe009b
* Use lombok, reformat, and optimize the code * Fix merge conflicts and some sonar issues Co-authored-by: va1m <va1m@email.com>
layout, title, folder, permalink, categories, tags
| layout | title | folder | permalink | categories | tags | |
|---|---|---|---|---|---|---|
| pattern | Property | property | /patterns/property/ | Creational |
|
Intent
Create hierarchy of objects and new objects using already existing objects as parents.
Class diagram
Applicability
Use the Property pattern when
- When you like to have objects with dynamic set of fields and prototype inheritance
Real world examples
- JavaScript prototype inheritance
