摘要:
package test; public class test1 {public static void main(String[]args){ Husband xiaoming=new Husband(); //建立丈夫对象; xiaoming.name="小明"; //给xiaoming取个名字 阅读全文
摘要:
package testthis; public class TestThis1 {int a,b;TestThis1(int a,int b){ this.a=a; this.b=b; System.out.println("a的值分别为:"+a); System.out.println("b的值 阅读全文
摘要:
package __; public class person{ private String name; private int age; public void setage(int age){ this.age=age; } public int getage(){ return this.a 阅读全文
摘要:
abstract class Graphic{ String name; public Graphic(String name){ this.name=name; } abstract public void getlength(); abstract public void getArea();} 阅读全文
摘要:
package ____; public class TestPolym{ public static void main(String[]args){ animal a=new animal(); animalcry(a); dog d=new dog(); animalcry(d); } sta 阅读全文
摘要:
石先森第71楼 ▼ ▼ ▼ class student{ String grade="学生"; int num; String name; String born; student(int num,String name,String born){ this.num=num; this.name=n 阅读全文