package ObjectIntOutputStreamDemo;
import java.io.Serializable;//注意每个类都要有这个接口
public class Student implements Serializable {
private int id;
public Student(int id, String name) {
super();
this....
分类:
其他好文 时间:
2014-07-28 15:56:53
阅读次数:
246
public class Circle {
private PointF centerPoint;
private float radius;
public PointF getCenterPoint() {
return centerPoint;
}
public void setCenterPoint(PointF centerPoint) {
this.centerPoin...
分类:
移动开发 时间:
2014-07-28 15:46:53
阅读次数:
239
private void button1_Click(object sender, EventArgs e) { Frm f = new Frm(); f.StartPosition = FormStartPosition.Manual;...
分类:
移动开发 时间:
2014-07-28 15:28:33
阅读次数:
190
private void DisplayHotBooks() { //获取所有的书分类信息 IList list = CategoryManager.GetAllCategories(); int i = 0; foreach (Category item in list) { AccordionP...
分类:
其他好文 时间:
2014-07-28 14:39:53
阅读次数:
354
public同一程序集中的任何其他代码或引用该程序集的其他程序集都可以访问该类型或成员。private只有同一类或结构中的代码可以访问该类型或成员。protected只有同一类或结构或者此类的派生类中的代码才可以访问的类型或成员。internal同一程序集中的任何代码都可以访问该类型或成员,但其他程...
分类:
其他好文 时间:
2014-07-28 02:59:39
阅读次数:
192
1.java中没有友元类,需要public,private,protected,package等关键字来限制2.python单例模式的实现http://blog.csdn.net/ghostfromheaven/article/details/76718533.命名法有匈牙利,骆驼,帕斯卡等命名法h...
分类:
其他好文 时间:
2014-07-28 02:58:39
阅读次数:
234
先建立一个table的基类:
public abstract class DbBaseTable {
private static final String TAG = "DbBaseTable";
/**
* @return the DB table name
*/
abstract String getName();
/**
* Creates the DB table ...
分类:
移动开发 时间:
2014-07-27 23:54:19
阅读次数:
478
在基类的table中加入upgrade操作:
public abstract class DbBaseTable {
private static final String TAG = "DbBaseTable";
/**
* @return the DB table name
*/
abstract String getName();
/**
* Creates th...
分类:
移动开发 时间:
2014-07-27 23:52:19
阅读次数:
387
/*3,权限在不同地方的体现: public protected default private同一类中: ok ok ok ok同一包中: ok ok ...
分类:
编程语言 时间:
2014-07-27 23:30:19
阅读次数:
307
class Solution {private: vector res;public: vector generateTrees(int n) { res.clear(); res = dfs(1, n + 1); return res; ...
分类:
其他好文 时间:
2014-07-27 23:28:19
阅读次数:
195