コード例 #1
0
        static void Main(string[] args)
        {
            Patrat P = new Patrat(4);

            GetValues(P);
            Cerc C = new Cerc(5);

            GetValues(C);
        }
コード例 #2
0
        public static void Main()
        {
            Cerc   c = new Cerc(3);
            Patrat p = new Patrat(3);

            Console.WriteLine("Aria si lungimea frontierei a {0}:", c.Denumire);
            DisplayInfo(c);
            Console.WriteLine();

            Console.WriteLine("Aria si lungimea frontierei a {0}:", p.Denumire);
            DisplayInfo(p);
        }