Test.8 Point
来源:互联网 发布:聊天软件市场分析 编辑:程序博客网 时间:2024/06/07 15:49
package GZHS;
public class Point {
public static void main(String[] args){
Circle c1=new Circle();
c1.printPoint();
Circle c2=new Circle(2.0,3.0);
c2.printPoint();
}
}
class Circle{
double x;
double y;
Circle(){
x=3.0;
y=4.0;
}
Circle(double x1,double y1){
x=x1;
y=y1;
}
void printPoint(){
System.out.println("圆的坐标为:("+x+","+y+")");
}
}
public class Point {
public static void main(String[] args){
Circle c1=new Circle();
c1.printPoint();
Circle c2=new Circle(2.0,3.0);
c2.printPoint();
}
}
class Circle{
double x;
double y;
Circle(){
x=3.0;
y=4.0;
}
Circle(double x1,double y1){
x=x1;
y=y1;
}
void printPoint(){
System.out.println("圆的坐标为:("+x+","+y+")");
}
}
阅读全文
0 0
- Test.8 Point
- opencv-Point Polygon Test
- topcoder SRM400 div2 1000point(pass system test)
- Point
- Point
- point
- Point
- point
- Point
- 8-7对point重载++,--
- QTP Tutorial #23 – QTP Smart Object Identification, Sync Point, and Test Result Analysis
- Point to Point Communication
- zero point pole point
- test
- test
- test
- test
- test
- git中Please enter a commit message to explain why this merge is necessary
- 从Mysql官网下载mysql.tar.gz版本的安装包
- 摩拜与ofo, 你们这是为了共享单车还是共享经济?
- css定位
- js ajax 常用函数
- Test.8 Point
- maven spring-boot 报Perhaps you are running on a JRE rather than a JDK?
- Eclipse 快速收起/展开方法结构快捷键设置
- cron表达式介绍
- Spring通过注释标签解决Ajax跨域访问以及Session失效的问题
- 浅谈 HotSpot 逃逸分析
- csv文件导入数据库工具类
- 自定义View中如何获得文本的宽和高
- OpenLDAP 概念与工作原理介绍