Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
756 B
2
Indexable
Never
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; }
    }
}
Leave a Comment