static void Main(string[] args) { DemoPoint point = new DemoPoint(3, 4); DemoLine line = new DemoLine(point, new DemoPoint(-2, 0)); line.Show(); }
public DemoLine(DemoLine other) { this.firstPoint = other.firstPoint; this.secondPoint = other.secondPoint; }