java面向对象编程类

 1 public class Dog {
 2     static int furColor;
 3     float height;
 4     float weight;
 5     
 6     void catchMouse(Mouse m) {
 7         //as;dfj;asdf
 8         //asdfj;asf
 9         //m.scream();
10     }
11     
12     public static void main(String[] args) {
13         //int i;
14         System.out.println(furColor);
15         Dog d = new Dog();
16         Mouse m = new Mouse();
17         d.catchMouse(m);
18         HelloWorld hw = new HelloWorld();
19     }
20 }
21 
22 class Mouse {
23     int height;
24 }

 

posted @ 2013-03-25 09:13  glt66  阅读(172)  评论(0编辑  收藏  举报