using System; namespace Lapid1 { class Lapp { protected double x; protected double y; public Toon varvus; public Lapp(double x, double y, Toon varvus) { this.x = x; this.y = y; this.varvus = varvus; } public override String ToString() { return "Lapp laiusega " + this.x + " pikkusega " + this.y + " tooniga " + varvus; } } enum Toon {Sinine, Punane, Kollane}; class Lapikatse { public static void Main(string[] arg) { Lapp lapp1 = new Lapp(25, 20, Toon.Kollane); Lapp lapp2 = new Lapp(15, 40, Toon.Sinine); Console.WriteLine(lapp1.ToString()); } } }