package com.mahe; |
public class Test { |
public static void main(String[] args) { |
|
Player p= new Player(); |
Game g= new Game(p); |
g.start(); |
} |
} |
package com.mahe; |
public class CircleTest { |
public static void main(String[] args) { |
Circle c1= new Circle(); |
c1.setRadius( 50 ); |
System.out.println( "圆的周长为" +c1.getPerimeter()); |
System.out.println( "圆的面积为" +c1.getArea()); |
} |
} |