Null object pattern: Difference between revisions

Content deleted Content added
Tag: Reverted
Tag: Reverted
Line 38:
The null object pattern can also be used to act as a stub for testing, if a certain feature such as a database is not available for testing.
 
==Example==
Given a [[binary tree]], with this node structure:
 
'''class''' node{
node left
node right
}