Minggu, 31 Juli 2016

How builder pattern works

Intent: Separate the construction of a complex object from its representation so that the same construction process can create different representations.   Motivation: A RTF (Rich Text Format) reader application should be able to convert a RTF document to several formats like: plain text or TeX representation or into a text widget which allows users to directly interact. The problem here is, the number of possible conversions is open ended. So, it should be easy to add a new conversion without modifying the reader. A solution to this problem is, the RTFReader class uses a TextConverter object that converts RTF

The post How builder pattern works appeared first on Coding Security.


How builder pattern works
read more

Tidak ada komentar:

Posting Komentar