公共类点{
doublex1,x2,y1,y2
doubled,x3,y3
点(doublex1,doubley1,doublex2,doubley2){//this.x1=x1
this.x2=x2
this.y1=y1
this.y2=y2
voidtestpoint(){//y2)/2
d=数学.sqrt((x1-x2)*(x1-x2)(y1-y2)*(y1-y2))系统输出打印(“(”x3“,”y3“)”)系统输出打印(d)
}
publicstaticvoidmain(string[]args){
pointp=新点(1,1,2,2)
p.testpoint()
}