【创建型】1、单例模式(Singleton Pattern) 2、工厂方法模式(Factory Method Pattern)3、抽象工厂(Abstract Factory Pattern)4、建造者模式(Builder Pattern) 5、原型模式(Prototype Pattern) 【结构型...
分类:
编程语言 时间:
2014-06-25 21:18:34
阅读次数:
247
1、首先先了解下NSNumber类型:
苹果官方文档地址:https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSNumber_Class/Reference/Reference.html
NSNumber是NSValue的一个子类,它是一个对象来存储数字值包括bool...
分类:
移动开发 时间:
2014-06-25 19:33:49
阅读次数:
354
unit Unit1;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V.....
分类:
其他好文 时间:
2014-06-24 23:36:30
阅读次数:
486
(1) abstract方法没有具体的实现,同时必须被覆写
(2) 虚(Virtual)方法可以没有具体的实现,也不一定必须覆写(虚方法定义时,可以没有具体的实现代码,但是必须创建方法体:即必须有方法的左右花括号)。
(3) 抽象方法不可以使用base.method()方式调用,但是虚方法是可以的
//定义一个抽象方法
using System;
using System.Colle...
分类:
其他好文 时间:
2014-06-24 22:21:22
阅读次数:
331
【interface vs abstract】1、interface中的方法不能用public、abstract修饰,interface中的方法只包括signature。 2、一个类只能继承一个abstract class,却可以实现多个interface。3、abstract class表示的是....
分类:
其他好文 时间:
2014-06-22 23:46:40
阅读次数:
251
http://blog.csdn.net/kunshan_shenbin/article/details/7249713http://api.rubyonrails.org/classes/ActionView/Helpers/FormBuilder.html#method-i-fields_for...
分类:
其他好文 时间:
2014-06-22 23:32:23
阅读次数:
257
??
Classes
类
Classes are the most important building block of any object-oriented system. A class is a description of a set of objects that share the same attributes, operations, relationships, ...
分类:
其他好文 时间:
2014-06-22 21:38:18
阅读次数:
226
According to the order of data structure book, Arrays should be introduced in the frist time. When reviewing the some information related to arrays, I feel shocked that many useful classes and methods...
分类:
编程语言 时间:
2014-06-22 18:13:18
阅读次数:
316
重要概念抽象类:当类中有一个方法为抽象方法,该类即为抽象类。继承一个抽象类时,应该实现其所有的抽象方法。name = $name; $this->speed = $speed; } abstract function run(); public function __...
分类:
其他好文 时间:
2014-06-21 16:46:12
阅读次数:
249
delphi汉字转拼音 2009-09-21 10:44:59| 分类: 计算机知识 |举报 |字号 订阅unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, F...
分类:
其他好文 时间:
2014-06-21 15:58:46
阅读次数:
494