static void Main(string[] args) { Ponto p1 = new Ponto(); int a = 1, b = 3; Ponto p2 = new Ponto(a, b); Reta r1 = new Reta(); Reta r2 = new Reta(r1); Console.WriteLine(r1.ToString()); Console.WriteLine(r2.ToString()); System.Threading.Thread.Sleep(5000); }
public Reta(Reta r) { this.p1 = r.p1; this.p2 = r.p2; }