费解的抽象类!

longling520 2007-12-24 02:59:12
When we define a class , we can leave a method blank. This kind of class is abstract. An abstract class is one that is not used to construct objects, but only as a basis for making subclasses. The class and it’s blank method are abstract by adding the modifier "abstract" to their definitions. For an abstract method, the block of code that gives the implementation of an ordinary method is replaced by a semicolon. An abstract class exists only to express the common properties of all its subclasses. An implementation must be provided for the abstract method in any concrete subclass of the abstract class.
谁能帮我翻译翻译,我的英语菜!非常感谢!
...全文
86 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
qgmzhfj 2007-12-24
  • 打赏
  • 举报
回复
关于这方面的,LZ可以看看中文资料就行
longling520 2007-12-24
  • 打赏
  • 举报
回复
thanks
老紫竹 2007-12-24
  • 打赏
  • 举报
回复
非直译:
1 抽象类不能直接构造成对象(也就是不能new 出来)
2 抽象类的方法类似 public abstract void function1(String); 的方式声明方法
3 或者采用 public abstract class MyAbsClass 来声明
4 抽象类只是为了表达他的所有子类都存在的一些公共属性
5 子类(非抽象类)必须实现抽象类的未实现的方法

23,407

社区成员

发帖
与我相关
我的任务
社区描述
Java 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧