空对象 [英] null objects
本文介绍了空对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是空对象
推荐答案
什么是空对象
这是一个简单的问题,答案可能非常复杂.例如,参见:
https://en.wikipedia.org/wiki/Null_Object_pattern
That is a simple question that can have a very complex answer. See, for instance:
https://en.wikipedia.org/wiki/Null_Object_pattern
如果您提供一些上下文信息(例如带有错误消息的示例),则可能可以做出更具体的注释.例如,当实际上意味着无对象"时,经常使用空对象"一词.
If you provide some context (an example with an error message, perhaps) then it may be possible to make a more specific comment. For instance, the term 'null object' is often used when what is actually meant is 'no object'.
这篇关于空对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文