Untitled
unknown
plain_text
2 years ago
756 B
9
Indexable
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Interface
{
internal class Point : IPoint
{
public double X { get; set; }
public double Y { get; set; }
public Point(double x, double y)
{
X = x;
Y = y;
}
public double distance => X *+ Y;
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Interface
{
internal interface IPoint
{
public double X { get; set; }
public double Y { get; set; }
public double distance { get; }
}
}
Editor is loading...
Leave a Comment