当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 1. Two methods of reusing classe
 

 

    摘要:windows下apache+tomcat+mysql+jsp+php的服务器整合配置经验总结 1.作者:moonsbird 题目:windows下apache+tomcat+mysql+jsp+php的服务器整合配置经验总结 时间:2004.8.19 最初发表于西南交通大学锦城驿站 2.本文是作者学习几年来学习jsp/配置服务器环境的经验总结。可以转载,但请注明出处. 开始学习jsp很久了,网上......
    摘要:mvc模式在j2me项目中的应用(一) 作者:favoyang email:favoyang@yahoo.com 欢迎交流 keywords:mvc j2me ui模式 内容提要: 本文简要的介绍了mvc模式的思想,并分析了mvc模式的利弊,最后结合midp平台给出几种常见的mvc模式实践。相信此文对任何一个使用midp平台的商务程序开发者都或多或少的有所帮助。 版权声明: ......


Thingking in Java--读书摘要--Chapter 6: Reusing classes

1. two methods of reusing classes

2. initializing the base class 【程序编程相关:关于javabean的一些文档

1.1 composition1.2 inheritance 【推荐阅读:编程范式[paradigm]

3. cleanup 【扩展信息:关于词法分析器的小程序

in the constructor, call "super(agument list)" first, or the compiler will call default constructor of the base class.

3.1 commonly, there is no need to do this.3.2 if you really want to do something cleanup, use "try { } finally { }".3.3 first, "this.cleanup()", then "super.cleanup()".

4. composition vs. inheritance

composition: has-a relationinheritance: is-a relation

5. upcasting

if a function is definded as "func(objecta aaa)",you can use "func(bbb)" when "bbb" is objectb which extends objecta.at this time, "bbb" is upcasted to a objecta.

6. "final"

6.1 final data


...   下一页
 ·用jdom建立xml文件     »显示摘要«
    摘要:import javax.xml.parsers.*;import java.util.*;import java.io.*;import org.jdom.document;import org.jdom.element;import org.jdom.input.saxbuilder;import org.jdom.output.xmloutputter;public class create......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE