Files
java-design-patterns/property/index.md
T
Markus fbb12b53ba Work towards #56: Splitting up the README
I did the job and splitted up the readme, hopefully everything was
splitted correctly...
2015-08-13 23:54:40 +02:00

20 lines
535 B
Markdown

---
layout: pattern
title: Property
folder: property
categories: pattern_cat
tags: pattern_tag
---
**Intent:** Create hierarchy of objects and new objects using already existing
objects as parents.
![alt text](./etc/property.png "Property")
**Applicability:** Use the Property pattern when
* when you like to have objects with dynamic set of fields and prototype inheritance
**Real world examples:**
* [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain) prototype inheritance