因为一个类的私有数据属于它的实现细节(implementation details),理想情况下应该隐藏起来,它的变化对于调用者不可见。 哦,不知道你是否曾经遇到过这样一个工程,里面有成百上千的源文件。
基于34个网页-相关网页
~哇哇~ - 博客园 关键词 :数字地球、大气散射、GPU、实现细节、顶点程序段、像素程序段 [gap=12823]Key words Primitive Picking,GPU,Geometry Shader,RTT,Floating Texture,3D Interaction
基于4个网页-相关网页
隐藏实现细节 Hide Implementation Details
如何知道这种信息是实现细节。
实现细节可以在下载小节中找到。
Implementation details can be found in the Download section.
该定义将包括必要的实现细节。
The definition will include the necessary implementation details.
And I would be able to simply bury away the details of how those other instances are created from how I want to use them by simply calling methods on the classes.
也就是一些线段的组合,我还可以把怎么实现那些,实例的细节包装起来,把它和调用实例分开来,我们下次还会接着讲这个。
Another way of saying it is, anything that uses get float doesn't care what the details are inside or shouldn't, and if I change that definition, I don't have to change anything elsewhere in my code, whereas if I just have the raw code in there, I have to go off and do it.
换种说法就是,任何用到获取,输入这个功能的人不用担心具体的实现细节,如果我改变了这里的实现,我并不需要去改变我的代码,因为我的最底处的源码就在这里,我去改这里就可以了。
I'm using it as an abstraction, saying I'm going to have square root from somewhere, maybe I'll build it myself, maybe somebody gives it to me a s part of a library, so I'm burying the details inside of it.
我把这个方法作为一个抽象来引用,意味着我将会从另外一个,地方去求一个数的平方根,可能我会自己写这个方法,也可能我会从别人写的lib中去引用,因此我将实现的细节放到了其他地方。
应用推荐