摘要: public class Z { public static void main(String[] args) { // TODO Auto-generated method stub new Yi().fun(); } public void fun() { System.out.println("Love i... 阅读全文
posted @ 2017-11-13 10:38 张立平 阅读(113) 评论(0) 推荐(0) 编辑
摘要: public class X { //一个是字段也称属性,另一个是方法,也称实现的功能 private double radius; // 构造方法,有参构造 public Yuan(double radius) { this.radius = radius; } //方法的重载,参数不同 // 构造方法,无参构造 ... 阅读全文
posted @ 2017-11-13 10:21 张立平 阅读(105) 评论(0) 推荐(0) 编辑
摘要: class Z private String name; private static int count; public Person() { count++; this.name = "NONAME - " + count; } public Person(String name) { this 阅读全文
posted @ 2017-11-13 10:16 张立平 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1.id + 姓名 + name + 年龄+ age +地址 + city package zy; public class Z { public int id; public String name; public int age; public String city; public Strin 阅读全文
posted @ 2017-11-13 10:04 张立平 阅读(109) 评论(0) 推荐(0) 编辑