2021-09-12 13:27:23 +03:00

24 lines
529 B
Markdown

---
title: Property
category: Creational
language: en
tags:
- Instantiation
---
## Intent
Create hierarchy of objects and new objects using already existing
objects as parents.
## Class diagram
![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