Use headings instead of bold text in index.md #238
This commit is contained in:
@ -9,7 +9,8 @@ tags:
|
||||
- Difficulty-Beginner
|
||||
---
|
||||
|
||||
**Intent:** In most object-oriented languages, such as Java or C#, references
|
||||
## Intent
|
||||
In most object-oriented languages, such as Java or C#, references
|
||||
may be null. These references need to be checked to ensure they are not null
|
||||
before invoking any methods, because methods typically cannot be invoked on
|
||||
null references. Instead of using a null reference to convey absence of an
|
||||
@ -20,6 +21,7 @@ Object is very predictable and has no side effects: it does nothing.
|
||||
|
||||

|
||||
|
||||
**Applicability:** Use the Null Object pattern when
|
||||
## Applicability
|
||||
Use the Null Object pattern when
|
||||
|
||||
* you want to avoid explicit null checks and keep the algorithm elegant and easy to read.
|
||||
|
Reference in New Issue
Block a user