Location:
Search - java2.3
Search list
Description: 本人认为学习JAVA很好的书,《JAVA2学习指南》包含四部分三十一章,是一本对JAVA初学者很好的书籍。-JAVA very good book, "JAVA2 study guide" contains four parts Chapter 31, is one pair of Java beginners good books.
Platform: |
Size: 191590 |
Author: ning |
Hits:
Description: 实验8 继承与多态
8.1 实验目的
(1) 理解类的继承,掌握变量隐藏、方法覆盖的概念。
(2)理解引用类型的变量的赋值转换原则。
(3)理解多态概念,掌握方法的匹配调用原则;
(4)理解抽象类与接口的使用;
(5)理解this和super的含义及使用。
(6)理解访问控制符的使用
8.2 知识要点
8.2.1 继承的概念
通过类的继承,祖先类的所有成员均将成为子类拥有的“财富”。但是能否通过子类对象直接访问这些成员则取决于访问权限设置。Object类是所有类的祖先。
8.2.2 构造方法与继承关系
构造方法不存在继承关系,子类中是如何给父类继承的属性赋初值呢?
子类通过调用父类的构造方法给父类的属性赋值,在子类的构造方法的第1行可以通过super去调用父类的构造方法,如果没有super调用,则默认调用父类的无参构造方法。所以,在父类中编写构造方法通常均要提供无参构造方法。
8.2.3 对象引用变量赋值原则
可以将子类的对象引用赋值给父类引用变量,由于父类能操作访问属性和方法的子类已全部继承。但将父类引用变量的值赋给子类引用变量就受到限制,必须进行强制转换,编译总是认可强制转换,但运行程序时如果不能正确转换就会报错。
Platform: |
Size: 85114 |
Author: wangli |
Hits:
Description: Core Java™ 2: Volume I - Fundamentals
By Cay S. Horstmann, Gary Cornell
Publisher : Prentice Hall PTR
Pub Date : August 22, 2002
ISBN : 0-13-047177-1
Pages : 752
经典JAVA教程。
Platform: |
Size: 2770699 |
Author: arthurcao |
Hits:
Description: 該電子文檔是< J2EE Tutorial中文版>>.使用Java2平台企业版(J2EE)来创建企业级应用程序
Platform: |
Size: 1219259 |
Author: 肖明 |
Hits:
Description: java2实用教程(第3版例子代码),源代码,原版电子档,希望大家能够觉得有用
Platform: |
Size: 165760 |
Author: wang |
Hits:
Description: java2实用教程(第3版例子代码)
Platform: |
Size: 2170880 |
Author: zhaojie456 |
Hits:
Description: JAVA Servlet2.3外文书籍源码-Servlet2.3 Java language source books
Platform: |
Size: 467968 |
Author: 梅梅 |
Hits:
Description: java编程思想中文版-thinking in java,chinese version
Platform: |
Size: 690176 |
Author: han |
Hits:
Description: sun公司出版的经典图书core java第一卷的第七版(最新版本) -sun publishing company of the classic books of the core java vol 7th Edition (the latest version)
Platform: |
Size: 6638592 |
Author: 李世民 |
Hits:
Description: 学习java的朋友必须要有的一个文档
很有用的-learning to be a friend to have a very useful document! !
Platform: |
Size: 1838080 |
Author: null |
Hits:
Description: 本人认为学习JAVA很好的书,《JAVA2学习指南》包含四部分三十一章,是一本对JAVA初学者很好的书籍。-JAVA very good book, "JAVA2 study guide" contains four parts Chapter 31, is one pair of Java beginners good books.
Platform: |
Size: 191488 |
Author: ning |
Hits:
Description: 一本比较好的java学习书籍,大家可以看看,一定会让你学到不少东西的-a good learning java books, we can see, some will allow you to learn a lot of things! ! Oh
Platform: |
Size: 6638592 |
Author: 韦德 |
Hits:
Description: 这是一本很不错的书籍,对JAVA的爱好者非常不错哦-This is a very good book, a pair of lovers JAVA very good oh! ! Oh
Platform: |
Size: 7923712 |
Author: 韦德 |
Hits:
Description: spring2.0 spring2.0-spring2.0 spring2.0 spring2.0
Platform: |
Size: 1036288 |
Author: |
Hits:
Description: Core Java 2 Volume I-Fundamentals 5th Edition。非常经典的Java2 核心技术(卷1)。-Core Java 2 Volume I-Fundamentals 5th Edition. Extremely classical Java2 core technology (volume 1). ,Java,Java书籍/Java Books
-Core Java 2 Volume I-Fundamentals 5th Edition. Java2 very classic core technology (Vol. 1).-Core Java 2 Volume I-Fundamentals 5th Edition. Extremely classical Java2 core technology (volume 1)., Java, Java books/Java Books
Platform: |
Size: 7923712 |
Author: ztyo |
Hits:
Description: core java 7版本,电子版本的。只不过是英文的而已。-core java 7 versions, electronic version. It is only in English.
Platform: |
Size: 2770944 |
Author: ztyo |
Hits:
Description: 《JAVA2核心技术》电子版,剖析最核心的Java技术,名家经典之作.此为英文版。- JAVA2 core technology electronic edition, Analysis of the core Java technology, famous classic. This is the English version.
Platform: |
Size: 14598144 |
Author: zeng |
Hits:
Description: flex实现的前台,java实现的服务器端。可以实现单个页面进行聊天-flex to achieve the prospects, java achieve server-side. Can achieve a single page chat
Platform: |
Size: 112640 |
Author: 王国金 |
Hits:
Description: 这里有IBATIS这详细说明,有详细的说明-There are IBATIS this detailed description, contains a detailed description of
Platform: |
Size: 1995776 |
Author: 章建文 |
Hits:
Description: java2的第三版课件,非常好的课件,学习基础知识很不错的,下载吧-The third edition of the Java2 courseware, very good courseware, learning basic knowledge of very good, download it
Platform: |
Size: 1359872 |
Author: xx |
Hits: