27 lines
708 B
Markdown
Raw Normal View History

---
layout: pattern
title: Property
folder: property
permalink: /patterns/property/
pumlid: FSV13OCm30NGLTe1YEziumOBKYMEPN-3s9wUUdlltRJst2Izlmx0OYLolihUSEGdGxnEXIXAdODQpul1Jby-UTaasgwBCI2kGOFZ1pAV9ewR1FMVaZwAvUWF
categories: Creational
2015-12-28 15:52:44 +02:00
tags:
- Java
- Difficulty-Beginner
---
## 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