计算机英语翻译,谢谢大家!!!!

1.Yourobjectsmightnotgetgarbage-collected.Youmightfindthatthestorageforanobjectneverg... 1. Your objects might not get garbage-collected.

You might find that the storage for an object never gets released because your program never nears the point of running out of storage. If your program completes and the garbage collector never gets around to releasing the storage for any of your objects, that storage will be returned to the operating system en masse as the program exits. This is a good thing, because garbage collection has some overhead, and if you never do it you never incur that expense.

2.Pure inheritance

Pure inheritance is, only methods that have been established in the base class or interface are to be overridden in the derived class. This can be termed a pure “is-a” relationship because the interface of a class establishes what it is. Inheritance guarantees that any derived class will have the interface of the base class and nothing less。

3.Abstract classes and abstract methods

If you inherit from an abstract class and you want to make objects of the new type, you must provide method definitions for all the abstract methods in the base class. If you don’t (and you may choose not to), then the derived class is also abstract and the compiler will force you to qualify that class with the abstract keyword.

4.Producing the right behavior

Once you know that all method binding in Java happens polymorphically via late binding, you can write your code to talk to the base class and know that all the derived-class cases will work correctly using the same code. Or to put it another way, you “send a message to an object and let the object figure out the right thing to do.”
展开
wtthd
2008-12-27 · TA获得超过323个赞
知道答主
回答量:98
采纳率:0%
帮助的人:0
展开全部
1 。您的物体可能不会得到垃圾收集。

您可能会发现,存储的对象从来没有得到释放,因为您的计划从来没有接近点耗尽的存储空间。如果您的计划完成和垃圾收集周围从来没有得到释放的存储您的任何物体,即存储将返回到操作系统作为集体退出该计划。这是一件好事,因为垃圾收集有一些开销,如果你从来没有做到这一点你永远不会承担费用。

2.Pure继承

纯粹的继承,只有方法,已经建立的基类或接口被否决的派生类。这可以被称为一个纯粹的“是一个”关系,因为界面的一类确定它是什么。继承保证任何派生类将有接口的基类而已。

3.Abstract类和抽象方法

如果你继承一个抽象类,你要的物体的新类型,您必须提供方法定义的所有抽象方法的基类。如果你没有(你可以选择不) ,然后在派生类是抽象的,编译器将迫使你有资格类别与抽象的关键字。

4.Producing权行为

一旦你知道,所有的方法结合在爪哇发生的多态通过后期绑定,您可以编写代码来谈论的基类和知道,所有的派生类案件将正常工作使用相同的代码。或者换句话说,你“将讯息传送给一个对象,让对象计算出正确的事情。 ”
(O(∩_∩)O选我吧)
上海辞书出版社
2024-10-16 广告
作为上海辞书出版社的一员,我们深知权威词典对语言学习与研究的重要性。牛津英语词典在线版,作为英语世界的权威参考之一,提供了全面、准确的词汇释义、词源分析、用法示例及同义词辨析等,极大地方便了全球英语学习者及研究者的需求。它不仅是语言教学的得... 点击进入详情页
本回答由上海辞书出版社提供
Mandy曼蝶
2008-12-27 · TA获得超过108个赞
知道小有建树答主
回答量:265
采纳率:0%
帮助的人:0
展开全部
1 。您的物体可能不会得到垃圾收集。

您可能会发现,存储的对象从来没有得到释放,因为您的计划从来没有接近点耗尽的存储空间。如果您的计划完成和垃圾收集周围从来没有得到释放的存储您的任何物体,即存储将返回到操作系统作为集体退出该计划。这是一件好事,因为垃圾收集有一些开销,如果你从来没有做到这一点你永远不会承担费用。

2.Pure继承

纯粹的继承,只有方法,已经建立的基类或接口被否决的派生类。这可以被称为一个纯粹的“是一个”关系,因为界面的一类确定它是什么。继承保证任何派生类将有接口的基类而已。

3.Abstract类和抽象方法

如果你继承一个抽象类,你要的物体的新类型,您必须提供方法定义的所有抽象方法的基类。如果你没有(你可以选择不) ,然后在派生类是抽象的,编译器将迫使你有资格类别与抽象的关键字。

4.Producing权行为

一旦你知道,所有的方法结合在爪哇发生的多态通过后期绑定,您可以编写代码来谈论的基类和知道,所有的派生类案件将正常工作使用相同的代码。或者换句话说,你“将讯息传送给一个对象,让对象计算出正确的事情。 ”
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式