码迷,mamicode.com
首页 >  
搜索关键字:extends super    ( 13868个结果
Android中activity的生命周期以及使用场景
#1完整生命周期代码如下。 package com.wzw.lifecycle; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class MainActivity extends Activity {...
分类:移动开发   时间:2014-07-29 17:47:22    阅读次数:227
类 RandomAccessFile 在文件任意位置进行读写
public class RandomAccessFile extends Object implements DataOutput, DataInput, Closeable此类同时实现了DataOutput和DataInput接口,此类的实例支持对随机访问文件的读取和写入。随机访问文件的行为类似...
分类:数据库   时间:2014-07-29 16:53:02    阅读次数:319
java ThreadLocal
public class ThreadLocal extends Object 该类提供了线程局部 (thread-local) 变量。这些变量不同于它们的普通对应物,因为访问某个变量(通过其 get 或 set 方法)的每个线程都有自己的局部变量,它独立于变量的初始化副本。ThreadLocal 实例通常是类中的 private static 字段,它们希望将状态与某一个线程(例如,用户 ...
分类:编程语言   时间:2014-07-29 14:40:08    阅读次数:286
Super A^B mod C
Given A,B,C, You should quickly calculate the result of A^B mod C. (1 #include #include #include #include #include using namespace std; typedef __int6...
分类:其他好文   时间:2014-07-29 11:08:56    阅读次数:220
指针要灵活用
#includeint main(){ int a = 5,b = 3; printf(&a["Ya!Hello!How is this?\n"],&b["junke/super"]); return 0;}
分类:其他好文   时间:2014-07-29 11:03:56    阅读次数:176
Java继承,多态,组合应用
继承:面向对象的三大特征之一:是类和类之间的一种拓展关系,是一种从一般到特殊的关系;格式: sub extends Super, 我们把sub称为子类或者拓展类, 把super称为父类或者基类(超类)泛化:把子类中的共性抽取到父类的过程;特化:子类在父类的基础之上,拓展自己特有的状态和特征;Obje...
分类:编程语言   时间:2014-07-28 23:51:34    阅读次数:367
Properties的练习
import?java.awt.event.*; import?java.io.*; import?java.util.Properties; import?javax.swing.*; /** Properties的练习 */ public?class?Sample?extends?JApplet { public?static?void?main(Stri...
分类:其他好文   时间:2014-07-28 16:58:14    阅读次数:282
IO流中ObjectOutputStream和ObjectInputStream的使用
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
java中异常注意的细节2
class A extends Exception{ A(){ super(); } A(String msg){ super(msg); }}class B extends A{ B(){ super(); } B(String msg){ ...
分类:编程语言   时间:2014-07-28 14:48:03    阅读次数:234
java中对象的初始化过程
class Parent{ int num = 8;// ->3 Parent(){ //super(); // ->2 //显示初始化 // ->3 //构造代码段 // ->4 show(); // ->5 } {// ->4 ...
分类:编程语言   时间:2014-07-28 14:46:13    阅读次数:182
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!