码迷,mamicode.com
首页 >  
搜索关键字:parent    ( 6866个结果
一个小例子对多态简单的理解
class Parent{ int age; String name; public Parent(String name, int age){ this.name = name; this.age = age; } public void writeWay(){ ...
分类:其他好文   时间:2014-07-28 15:19:03    阅读次数:182
java中对象的初始化过程
class Parent{ int num = 8;// ->3 Parent(){ //super(); // ->2 //显示初始化 // ->3 //构造代码段 // ->4 show(); // ->5 } {// ->4 ...
分类:编程语言   时间:2014-07-28 14:46:13    阅读次数:182
java中的显示初始化和特定初始化
public class Test{ public static void main(String[] args){ Child child = new Child(); }}class Parent{ public Parent(){ super(); sho...
分类:编程语言   时间:2014-07-28 14:44:53    阅读次数:199
java中对象多态时成员变量,普通成员函数及静态成员函数的调用情况
/*样例1: class Parent{ int num = 3; } class Child extends Parent{ int num = 4; }*//*样例2:class Parent{}class Child extends Parent{ int num...
分类:编程语言   时间:2014-07-28 14:36:43    阅读次数:214
Lesson 25-26 Distractions at the Wheel
一 Words 1 distraction 使分心,娱乐,使恼火n e.g. A very clingy child can drive a parent to distraction.一个非常黏人的孩子会让父母不胜其烦。 2 at the wheel 在驾驶室,当主管 e.g. I’ll take...
分类:其他好文   时间:2014-07-27 21:38:15    阅读次数:220
【安卓笔记】仿乐安全首页动态效果
先看效果: 布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout...
分类:移动开发   时间:2014-07-27 11:39:04    阅读次数:238
数据结构之哈夫曼树
typedef struct{        int wiget;        int lchild,rchild,parent;        int data;     }HNode,*HTree;      void select(HTree &H,int i,int &s1,int &s2){              int tmp,min1,min2=0;   ...
分类:其他好文   时间:2014-07-27 11:11:52    阅读次数:208
ngui 脚本绘制sprite
public GameObject _background;public UIAtlas atlas;private Dictionary _allCardSprite;for (int i=0; i(_parent); _sprite.atlas = atlas; ...
分类:其他好文   时间:2014-07-25 16:44:51    阅读次数:293
android launcher2开发之 有抽屉改成无抽屉
在launcher.java中在createShortcut方法中   屏蔽所有应用按钮 改动之前 View createShortcut(int layoutResId, ViewGroup parent, ShortcutInfo info) { BubbleTextView favorite = (BubbleTextView) mInflater.inflate( layoutRe...
分类:移动开发   时间:2014-07-25 11:02:28    阅读次数:290
Android 官方提供的支持屏幕大小的全部方法(精华)
本文将告诉你如何让你的应用程序支持各种不同屏幕大小,主要通过以下几种办法:让你的布局能充分的自适应屏幕根据屏幕的配置来加载合适的UI布局确保正确的布局应用在正确的设备屏幕上提供可以根据屏幕大小自动伸缩的图片使用 "wrap_content" 和 "match_parent"为了确保你的布局能够自适应...
分类:移动开发   时间:2014-07-24 17:25:42    阅读次数:359
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!