all index.md files renamed to README.md for more compatibility with github
This commit is contained in:
25
property/README.md
Normal file
25
property/README.md
Normal file
@ -0,0 +1,25 @@
|
||||
---
|
||||
layout: pattern
|
||||
title: Property
|
||||
folder: property
|
||||
permalink: /patterns/property/
|
||||
categories: Creational
|
||||
tags:
|
||||
- Java
|
||||
- Difficulty-Beginner
|
||||
---
|
||||
|
||||
## Intent
|
||||
Create hierarchy of objects and new objects using already existing
|
||||
objects as parents.
|
||||
|
||||

|
||||
|
||||
## 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
|
Reference in New Issue
Block a user