急!求英语高手帮忙翻译,感激不尽!

Object State and the Object's Interface
Design Process Example: Bank Account
Design Process Example: Bank Account Applet
OOP takes ADTs one step further. It actually allows you to organize your entire solution as a collection of types, known as classes, where each class defines both data and operations. Minimally, classes provide an excellent tool for constructing ADTs. They provide language support allowing the programmer to say, "These operations are designed to be used with this type of data."
Thus, in a given problem statement, non-OOP (such as procedural programming) concentrates on verbs (procedures) whereas OOP concentrates on nouns (objects), and the verbs associated with them..
But, as you know, there are many things about certain classes of objects that you can't see from the outside. These are their hidden attributes. We can determine the hidden attributes of a class of objects, by considering their behaviors. For example, when a car is driving, its speed is very important -- especially, for example, on heavily traveled roads. The same is true of its direction of travel. And, depending on the type of program we are writing, it might also be important to know more esoteric details, such as the speed of the engine measured in RPMs. And, of course, we wouldn't want to neglect one very important property -- the amount of fuel remaining in the car.
By carefully considering what objects do, what they need to do it, and how we otherwise describe them, we can determine the behaviors, hidden attributes, and visible attributes of different classes of objects.
Writing Java programs using the Object-Oriented approach is nothing more than identifying and describing the behaviors and attributes of objects.
For example, one operates a car by using the gas pedal, the brake pedal, and the steering wheel. Even the best among mechanics wouldn't consider driving a car, by manipulating valves, gears, and pulleys from under the hood. Although those items exist, and are essential parts of the automobile, they are only designed to be manipulated by other parts of the automobile.
There are private aspects of a class that, much like the internals of a car, are designed only to interact with other parts of the car. And, there are also public aspects of the objects that are visible to, and available to, the users of the object -- for example, the steering wheel.
When we hide certain properties of a class from public view, by making them private, this is sometimes known as information hiding. It is important however, to remember that Java allows us to specify both private data elements and also private behaviors.
我的英文是两万字的阿,可是只能贴3000,郁闷

物体州和物体的接口
设计程序例子: 银行帐户
设计程序例子: 银行帐户支程序
OOP 更进一步轮流 ADTs 一个步骤。 资讯科技实际上允许你组织如一个类型的收集你整个的解决,知道如每个班级定义数据和操作的班级。 最小地,班级提供一个优良的工具给构造 ADTs 。 他们提供允许程序师说的语言支持," 这些操作被设计被数据的这一个类型用 " 。
然而 OOP 专注于名词 (物体), 和与他们有关的动词,因此,在一份给定的问题陈述中,非 OOP(像是程序的规画) 专注于动词 (程序) 。。
但是,正如你所知,有许多关于的事物物体你从外面不能见到的特定班级。 这些是他们的隐藏属性。 我们能决定一个物体的班级隐藏属性,藉由考虑他们的行为。 举例来说,当一辆汽车正在驾驶的时候, 它的速度非常重要 -- 尤其, 举例来说, 在很重地旅行道路之上。 一样的适用于它的旅行方向。 并且, 仰赖计画的类型我们正在写,它也可能是重要知道,比较秘教的细节, 像是引擎的速度在 RPM 中测量。 并且, 当然,我们不想要疏忽非常重要的财产 -- 在汽车中保持的燃料数量。
被小心地考虑物体做的 , 他们需要做它的,和我们如何以别的方式描述他们,我们能决定物体的不同班级的行为,隐藏的属性和看得见属性。
使用物体定向的方式写作爪哇计画不是什么超过东西识别而且描述物体的行为和属性。
举例来说,一藉由使用油门,刹车踏板 , 和方向盘操作一辆汽车。 甚至在技巧之中的最好不考虑驾驶一辆汽车,藉由从在头巾之下操纵活瓣,齿轮和滑车。 虽然那些项目存在, 而且是汽车的必要部份, 但是他们只被设计被其他汽车的部份操纵。
有一个,多像一辆汽车的内在者,被设计的班级私人方面不料竟会与其他汽车的部份互动。 并且, 也有公众看得见的物体方面到, 和可得的到, 物体的使用者 -- 举例来说, 方向盘。
当我们藏来自公众的视野一个班级的特定财产的时候,藉由使他们私人,这有时即是藏的数据。 资讯科技然而很重要, 记得爪哇允许我们叙述私人的数据元素以及私人的行为
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-10-23
物体的串接和物体的连接
设计过程的例子:银行账户
设计过程的例子:银行账户Applet
OOP需要ADTs更进一步。它实际上允许你组织你的整个解决方案作为一个集合的类型,称为类,每个类定义了两个数据和操作。最低限度,类提供一个优秀的工具ADTs建设。他们提供语言支持允许程序员说,“这些操作是设计用于与这种类型的数据。”
因此,在一个给定的问题陈述,非OOP(比如过程编程)集中于动词(过程)而OOP专注于名词(对象),以及与它们相关的动词。
但是,你知道,有许多事情对某些类型的对象,你不能从外部观察的银河。这些都是他们隐藏的属性。我们可以确定隐藏类的属性的对象,通过考虑他们的行为。例如,当一辆汽车,它的速度是驾驶是非常重要的——特别是,例如,繁忙的路段。同样如此行走的方向。,并且根据类型的程序我们所写的东西,它也可能是重要的知道更加深奥的细节,比如引擎的速度以rpm。当然,我们不想忽视一个非常重要的特性——燃料量的剩余的汽车。
通过仔细考虑什么对象做的,他们需要做什么,并且我们怎么否则描述它们,我们可以确定行为,隐藏属性,和可见的属性的不同类型的对象。
编写Java程序使用面向对象的方法无非是识别和描述的行为和属性的对象。
例如,一个经营一个汽车通过使用油门踏板,刹车踏板,和方向盘。即使是最好的在力学不会考虑驾驶一辆车,由操纵阀,齿轮,和滑轮从引擎盖下面。尽管这些物品exi
第2个回答  2007-03-22
面向对象国的接口设计
面向对象国的界面设计过程为例:银行帐户设计过程为例: Applet的银行账户对象需Gikongoro一步. 它实际上是让你组织你的收藏种类为整个解决方案,称为班 凡每班界定双方的数据和业务. 微、阶级Gikongoro建设提供了良好的工具. 它们提供语言支持允许程序员说 "这些行动的目的是用这种数据" 因此,在某一问题发言 非对象(如程序编程),而集中于动词(程序)对象集中名词(物), 与动词相关责任.. 但是,如你所知,有很多事情,你对某些类别的物体从外面看不到. 这是他们隐藏属性. 我们可以决定隐藏属性的一类对象,考虑其行为. 举例来说,当一车的驾驶,其速度是非常重要的--尤其,例如对重走过的道路. 同样的方向旅行. 而按其计划还要写, 它也可能是更重要的深奥知道详情 如发动机检测台RPM速度. ,当然 我们不想忽略一个很重要的财产--剩余燃油量的车. 仔细考虑对象做什么的,他们最需要做的,否则我们如何来形容他们, 我们可以决定行为,隐藏属性,可见属性不同类别的物体. 写Java程序用面向对象的方法,莫过于确定并描述物体的属性和行为. 例如,一家经营汽车用天然气踏板、刹车踏板、方向盘. 再好的力学不会考虑开车,操纵阀门、齿轮、滑车从下罩. 虽然这些项目存在,对于地区的汽车、 他们只是为了被其他部分的汽车. 还有一类是私人问题,就像一辆汽车内部、 目的只有互动等汽车零件. 此外,还有公共方面也有明显的物体,并提供、 用户对象--例如,方向盘. 当我们从隐瞒某些性质的一类公共看法,使他们私下 这有时被称为信息隐藏. 不过重要的是,让我们记住,Java的数据元素,也指明私人私人行为.
相似回答