`
文章列表
Getting Start   OS X Distributions 1, MacPorts: package management system   $ sudo port install ruby19   2, Building ruby from source, get source and do follow: ./configure make make test make install   Check which shell has been using, do follow:   echo $SHELL   if consol ...
Author: Stefan Tilkov from: InfoQ     ---------------------------------------------https://docs.google.com/fileview?id=0B9_1SZT2TitfYjY2OTNmZmQtYjYxYi00YThhLWEyZWQtNTNiOTUzYjE1NTIz&hl=en&authkey=CPvU4bwK --------------------------------------------- Notes:   1). Give every "t ...
用 jQuery 创建 ActiveRecord 对象使用jquery.form.js 部分代码, 原文看http://malsup.com/jquery/form/#getting-started // prepare the form when the DOM is ready $(document).ready(function() { var options = { target: '#output2', // target element(s) to be updated with server response ...
? (PROXY patterns) 代理模式就有三个角色组成了:       抽象主题角色:声明了真实主题和代理主题的共同接口。       代理主题角色:内部包含对真实主题的引用(通过组合实现),并且提供和真实主题角色相同的接口。       真实主题角色:定义真实的对象。 ----------------------------------------------------------------- 远程(Remote)代理:为一个位于不同的地址空间的对象提供一个局域代表对象. (??) 虚拟(Virtual)代理:根据需要将一个资源消耗很大或者比较复杂的对象延迟的真正需要时才 ...
hello
Pattern 1. (STRATEGY pattern) Creating systems using composition gives you a lot more flexibility. Not only does it let you encapsulate a family of algorithms into their own set of classes, but it also lets you change behavior at runtime as long as the object you're composing with implements the cor ...

抽象类 vs 接口

    博客分类:
  • J2EE
在abstract class方式中, 可以有自己的数据成员,也可以有非abstarct的成员方法. 在interface方式的实现中, 只能够有静态的 不能被修改的数据成员(也就是必须是static final的,不过在interface中一般不定义数据成员),所有的成员方法都是abstract的。从某种意义上说,interface是一种特殊 形式的abstract class. abstract class在Java语言中表示的是一种继承关系,一个类只能使用一次继承关系。但是,一个类却可以实现多个interface。也许,这是Java语言的设计者在考虑Java对于多重继承的支持方面的一种 ...
Project Name :  ARUNO Development Environment : JOOMLA, MYSQL, PHP and APACHE. --------------------------------------------------------------------- Installation Guide * The easiest way to install development environment is that using XAMPP. * Following the book (Building Websites with Joomla - ...
04/08/2008 (week 1)overloaded methods can have the same name but must have different parameter lists.----------------to use finalize( ), it gives you the ability to perform some important cleanup at the time of garbage collection.finalize( ) can be used for verification of the termination condition o ...
Global site tag (gtag.js) - Google Analytics