CISC 323 Intro to Software Engineering
CISC 323 Intro to Software Engineering
CISC 323 Intro to Software Engineering
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
¤<br />
¢ £<br />
¤ ¥<br />
¦ §<br />
¨¥<br />
©�<br />
Flyweight Implementation<br />
create (intrinsicData)<br />
• Client creates flyweight instances using flyweightFac<strong>to</strong>ry<br />
• Fac<strong>to</strong>ry requires intrinsic data as parameter -- e.g., parameter is<br />
“a” <strong>to</strong> create instance of character “a”<br />
• Fac<strong>to</strong>ry returns flyweight object with this intrinsic data<br />
• Client must maintain extrinsic data -- e.g., character font, position<br />
¤�<br />
§<br />
©��<br />
�<br />
�<br />
��<br />
��<br />
�<br />
�<br />
��<br />
��<br />
�<br />
�<br />
� � ����<br />
�£<br />
� § �<br />
¤<br />
¤ ¥<br />
§£ �<br />
�<br />
���<br />
��<br />
©§<br />
� �<br />
��<br />
¡