但这样还不是一个最理想的面向对象的实现,还有更好的方式。
This is a much better object oriented implementation but still not the most optimal.
事实上,很多人都使用过其对象模型创建过极为复杂、设计良好的面向对象软件。
In fact, many have used its object model to create surprisingly sophisticated, well-designed, object-oriented software.
面向对象的分析和设计(OOAD) [2]。
面向对象原则和OOD实际上是两个不同的方面。
Object Oriented Principles and Object Oriented Design are actually two different things.
通常情况下,一种语言要支持面向对象的能力,必须具备以下的能力。
For a language to be object oriented, it has to provide support for the following.
与流行的信念相反,它是一种纯面向对象语言。
Contrary to popular belief, it is a pure object-oriented language.
这种方法的最大好处就是它能够最好地适应面向对象的概念。
The main advantage of this approach is that it conforms best to object-oriented concepts.
“私有”和“公有”在这里的意思和在大多数面向对象语言里一样。
"Private" and "public" have the same meaning here as in most object-oriented languages.
转动你的拍摄对象使其中一个肩膀面向光线。
Turn your subject so that only one shoulder is facing the light.
从面向对象角度解释为:" 引起类变化的因素永远不要多于一个。
There should never be more than one reason for a class to change.
所以它到底是什么呢?,面向对象编程中的对象到底是什么呢?
So what is this all about? What is an object in object-oriented programming?
针对这类问题的一种面向对象式解决方案是使用工厂类。
The object-oriented solution to such a problem is the factory class.
在实际的面向对象的场景中绝对不能这样做。
窍门是记住面向对象编程中类型的重要性。
The trick is to remember the importance of type in object-oriented programming.
当然还可以是面向对象的数据库。
例如,您也许还记得所谓的面向对象的分析和设计(OOAD)。
For example, you may remember that there's something called Object-Oriented Analysis and Design (OOAD).
它是我们今天理解面向对象编程的范例。
It is the model we look to for an understanding of object-oriented programming today.
面向对象的分析与设计。
对面向对象编程的全新支持。
作为最后一步,它们将转换为面向对象的Python这个终结目标。
As a final step, they get converted into the end goal of object-oriented Python.
如果更愿意采取面向对象的方式,可以使用相应的静态方法。
If you prefer the object-oriented approach, you can use the corresponding static method.
使您的代码对象和面向服务。
1995年加入了面向对象开发支持的第二个版本的发布。
Second release in 1995 adding object-oriented development support.
但在面向对象编程中有没有对象的情况下机器语言。
But in the case of oop programing there are no objects in machine language.
因此,在1997年,我开始写一个完全面向对象的版本。
So, in 1997, I set out to write a fully object-oriented version.
这个程序应该是面向对象的。
我如何运用面向对象的设计模式,在这种情况下?
在面向对象编程中,对象是产物或被类产生的实例。
In object-oriented programming, an object is the product or instance generated by a class.
“告知,不要问”被认为是一个很好的面向对象设计原则。
"Tell, don't ask" is considered a good principle of object-oriented design.
“告知,不要问”被认为是一个很好的面向对象设计原则。
"Tell, don't ask" is considered a good principle of object-oriented design.
应用推荐