更具体地说,它是子类对相同消息做出不同反应的能力。
More specifically, it is the ability of subclasses to respond differently to the same messages.
But, in economic terms, there's no difference between losing the tickets and losing $400, so why do you behave differently?
但是,从经济学角度上看,丢了票和丢了400美元没有什么不同,但你为何会做出不同的反应呢?
If I present the same thing in another context or background or environment, then you react very differently.
如果我用另一种表述方式来叙述同样的事件,或者更换背景及环境,你的反应会完全不同。
And you might say, wait a minute, isn't that a string, and the answer's no, I didn't say it's a string by putting quotes around it And notice how the machine responds differently to it.
你会想,等等,这不是个字符串么?,答案是否定的,我没用引号包围它就意味着它不是字符串,请注意计算机对它给出了不同的反应。
应用推荐