OK, you say, come on, I've seen these all the time. Every time I type something into my program, it does one of these things, right?
好了,或者你要说,我总是能看见这些,每一次我在程序里输入一些内容的时候?
A pure functional language like Haskell might offer type hierarchies, discriminated unions, quantification, existential types, and so on, but OOP languages typically lack these things.
象Haskell那样的纯函数型语言可以提供类型层次结构、区别合并、量化、存在类型等等,但OOP语言通常缺乏这些功能。
Let's explore these visibility options in more detail. To keep things simple, we'll use fields for member examples. Method and type declarations behave the same way.
让我们来仔细探索一下这些可见性选项。为了简单,我们会使用字段来作为成员的例子。方法,类型声明的行为和字段是一致的。
OK, you say, come on, I've seen these all the time. Every time I type something into my program, it does one of these things, right?
好了,或者你要说,我总是能看见这些,每一次我在程序里输入一些内容的时候?
One of the things that we discussed was this type of imagery here where you have vertically these pillars, if you will, or we could even call--the more I sort of looked at this--sort of call them tree trunks almost.
我们讨论的问题之一是这里的这种意象,这些垂直的柱子,如果你愿意的话,我们可以称之为,我越看越觉得称之为树干比较好。
应用推荐