This principle asserts that the designer of a class and the user of that class share assumptions about the class implementation.
这个原理声称一个类的设计者和这个类的使用者,共同分享关于类的实现的假设。
In following the Open Closed Principle, I want to be able to write a class or a method and then turn my back on it, comfortable that it does its job and I won't have to go back and change it.
在遵循开闭原则的过程中,我期望能够写出一个类或者方法,在以后我回过头读它的时候,会很舒服地看到它能完成它的工作并且我也不需要再修改它。
If a class that uses an abstraction has to downcast to a specific subclass in one section, you're not following the Open Closed Principle.
如果在某一部分中,一个抽象了的类必须向下转换为特定的子类,那么你就没有遵循开闭原则。
As I said earlier, the most common manifestation of the Open Closed Principle is using polymorphism to substitute an existing part of the application with a brand new class.
如果我前面所说的,使用开闭原则最通常的做法就是使用多态去用一个全新的类替换程序中现存的一部分。
A general principle of test-driven development is that you should test all published interfaces to a class.
测试驱动的开发的总体原则之一就是应测试一个类已发布的所有接口。
An easy way to follow the Single Responsibility Principle is to constantly ask yourself whether every method and operation of a class is directly related to the name of that class.
遵循单一责任原则的最简单办法就是不断地问自己是不是这个类的每一个方法和操作都与这个类的名称直接相关。
In principle, one can trace that history back in cosmic time by observing a so-called standard candle, a class of astronomical object whose intrinsic luminosity is uniform.
原理上,我们可以通过观测所谓的标准烛光(一种天体,它的绝对光度是相同的)来追溯宇宙内的历史。
Finally, JAMA is not a general-purpose array class. Instead, it focuses on the principle mathematical functionality required to do numerical linear algebra.
最后,jama也不是一个通用的数组类,相反,它主要关注于与矩阵数值计算相关的数学运算。
You'll never reach true Open Closed nirvana, but you can inch much closer by rigorously following the related Single Responsibility Principle: a class should have one, and only one, reason to change
你永远也达不到真正的开闭天堂,但是通过严格地遵循与之相关的单一责任原则:一个类应该有并且只有一个更改的理由,你可以非常靠近地接近它。
The design follows the Open Closed Principle if you can extend the system by swapping out implementations of IDataSource without making any change to the BusinessProcess class.
如果你可以通过实现IDataSource对这个系统进行扩展并且不对BusinessProcess类做任何的修改,那么这个设计就遵循了开闭原则。
This principle states that if we have 2 reasons to change for a class, we have to split the functionality in two classes.
这个原则指出,如果有两个原因去修改一个类,我们必须拆分它的功能到两个类中。
Perhaps it's a case for duck typing, the principle that it doesn't really matter what an object is, in terms of class and module, but only what it does.
可能这就是ducktyping的一个例子,duck typing所代表的原则是,无论对象属于什么类或者模块,关系都不大,关键在于它做些什么。
Corrected class hierarchy of Liskov Substitution principle.
违反Liskov替换原则类结构图。
The principle implies that A class should have one, and only one, reason to change. In CSS we have.
这意味着在CSS中我们的一个类应该有一个原则而且只有一个理由去改变。
To instead have them in the subclass violates the principle of DRY (don't repeat yourself) : if all the subclasses have the same function, why write it repeatedly in every class?
而他们在子类违反干燥原理(不要重复自己):如果所有的子类具有相同的功能,为什么要写它重复在每一个阶级?
This curriculum advance class is the international trade theory and the practice, the commerce and the accounting principle, the market marketing.
该课程的先行课是国际贸易理论与实务、商务与会计原理、市场营销。
The last part is principle of developing and using of student generative curriculum resources in history class.
第四部分是开发与利用历史课堂生成性资源的原则。
A method of sliding mode control based on fuzzy logic, for a class of linear uncertain system shown in phase coordinate, is presented It if derived from the principle of sliding mode control.
本文针对一类相坐标表示的线性不确定系统,根据滑模控制原理,提出一种基于模糊逻辑的滑模控制方法。
This paper studies the design principle and implementation technique for a class distributed loosely coupled process system base on WEB. And gives application example.
描述所完成的分布式松耦合过程群集系统架构的设计原理与实现技术,并给出了应用实例。
This curriculum advance class is the international trade theory and the practice, the commerce and the accounting principle and so on.
该课程的先行课是国际贸易理论与实务、商务与会计原理等。
By adhering to the principle of "quality first, customer foremost", and "mutual development and benefit", our company will provide first class service for our customers.
本公司将本着“质量第一,顾客至上”的宗旨,凭着“互惠互利”的原则,为顾客提供一流服务。
In this paper, the class of search engine, work principle, system structure and the effect in digital library are discussed.
本文就搜索引擎的分类、工作原理、体系结构以及在数字图书馆中的作用做了一些探讨。
According to the principle of psychology, the article presented ten methods of class questions in mathematics education.
笔者以心理学原理为基础,提出了数学教学中课堂的十种提问方法。
The paper introduces the parts and operating principle of the compressed air class A foam system and gets some conclusions about the application theory of the system through test.
本文介绍了压缩空气A类泡沫灭火系统的组成和工作原理,并通过试验得到了此系统的一些应用结论并提出了今后的研究方向。
Let's conditionally generalize principle of transfinite recursion from ordinal number class to class with well-founded relation.
借助一阶逻辑演算有条件地把超限递归原理从序数类推广到具有良基关系的类上。
There exists a serious scientific principle tendency in literature class teaching as a result of inadequate importance to the humanism in literature.
文学课及其教学的人文性没有得到足够重视,科学主义倾向相当严重。
The principle and performance of a pulverized coal direct ignition burner suitable for any corner fired boiler and common class coal are presented.
本文介绍一种能通用于四角燃烧锅炉和一般煤种的煤粉直接点火燃烧器的原理和性能。
This paper presents a new method with driver transformation for the kinematic analysis of the planar mechanisms in high class, based on the Assur group theory and kinematic superposition principle.
本文依据阿苏尔杆组理论及运动迭加原理,提出了一种新的高级机构运动分析方法——变换原动件法。
This paper presents a new method with driver transformation for the kinematic analysis of the planar mechanisms in high class, based on the Assur group theory and kinematic superposition principle.
本文依据阿苏尔杆组理论及运动迭加原理,提出了一种新的高级机构运动分析方法——变换原动件法。
应用推荐