Skip to content

Files

Latest commit

52d3a59 · Jun 17, 2020

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 16, 2020
Jun 16, 2020
Jun 17, 2020

Flyweight Pattern

Flyweight is a structural design pattern that lets you fit more objects into the available amount of RAM by sharing common parts of state between multiple objects instead of keeping all of the data in each object. source

In this example CloudType shares the color attribute of Cloud.