View Source on Github

Property

Difficulty-Beginner Java Creational

Intent

Create hierarchy of objects and new objects using already existing objects as parents.

alt text

Applicability

Use the Property pattern when

  • when you like to have objects with dynamic set of fields and prototype inheritance

Real world examples