static void Main(string[] args) { Ucgen u1 = new Ucgen(3, 5); Console.WriteLine(AlanBilgi.UcgenAlan(u1)); Dikdortgen d1 = new Dikdortgen(3, 5); Console.WriteLine(AlanBilgi.DikdortgenAlan(d1)); }
public static string UcgenAlan(Ucgen u) { return($"Ucgen alan: {u.Alan()}"); }