Replace Data Value with Object

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
Brett Ward (Talk | contribs)
(Filling in some pages that are linked to, but have yet to be created (ie, I dont like red text >.>))
Newer edit →

Revision as of 10:42, 14 October 2009

When you have an item of data that needs additional data or behaviour, for example a String representing a phone number that needs special formatting behaviour (area codes, country codes, etc) that cannot simply be added to the String.

To do this, we turn the simple data object into an object. In the case above the phone number will become an object of it's own.

Personal tools