11 2016 档案

File类
摘要:构造器: Creates a new File instance from a parent abstract pathname and a child pathname string. Creates a new File instance by converting the given path 阅读全文

posted @ 2016-11-28 11:30 cpc2016 阅读(121) 评论(0) 推荐(0)

String类
摘要:string构造器: String() String(byte[] bytes) String(byte[] bytes, Charset charset) String(byte[] ascii, int hibyte) String(byte[] bytes, int offset, int l 阅读全文

posted @ 2016-11-28 10:19 cpc2016 阅读(317) 评论(0) 推荐(0)

继承
摘要:继承的关系:“is a”(每个经理都是雇员) 子类中可以直接使用父类中的public 和protected变量,但是不能使用private变量。 super并不是一个对象的引用,不能赋给一个对象变量,它只是一个指示编译器调用超类方法的特殊关键字 super构造器:super(name,id),sup 阅读全文

posted @ 2016-11-20 23:27 cpc2016 阅读(248) 评论(0) 推荐(0)

对象与类
摘要:java总是采用按值调用,方法得到的是所有参数值的一个拷贝,方法不能修改传递给他的任何参数变量的内容。 然而,如何是对象参数,得到的时对象引用的拷贝。 1一个方法不能修改一个基本数据类型的参数 2一个方法可以改变一个对象参数的状态 3 一个方法不能让对象参数引用一个新的对象 如果一个类中出现了名称相 阅读全文

posted @ 2016-11-06 23:42 cpc2016 阅读(211) 评论(0) 推荐(0)

导航