using System.Collections.Generic;
using System.Text;
{
class Point
{
private double _x;
private double _y;
private double a;
private double b;
{
get
{
return _x;
}
set
{
_x = value;
}
}
{
get
{
return _y;
}
set
{
_y = value;
}
}
public double A
{
get
{
return A;
}
set
{
a = value;
}
}
public double B
{
get
{
return b;
}
set
{
b = value;
}
}
{
double x, y,z;
x = Math.Pow((_x - a), 2);
y = Math.Pow((_y - b), 2);
z = Math.Sqrt(x+y);
Console.Write(z);
return z;
}
{
Console.Write("("+_x+","+_y+")");
}
}
}
using System.Collections.Generic;
using System.Text;
{
class Program
{
static void Main(string[] args)
{
Point p = new Point();
p.X = 4;
p.Y = 4;
p.A = 5;
p.B = 5;
p.distant();
p.toString();
}
}