Exemplo n.º 1
0
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        static void Main()
        {
            // Non-adapted chemical compound
            Compound unknown = new Compound(Chemical.Unknown);

            unknown.Display();

            // Adapted chemical compounds
            Compound water = new RichCompound(Chemical.Water);

            water.Display();

            Compound benzene = new RichCompound(Chemical.Benzene);

            benzene.Display();

            Compound ethanol = new RichCompound(Chemical.Ethanol);

            ethanol.Display();

            // Wait for user
            Console.ReadKey();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        static void Main()
        {
            // Non-adapted chemical compound
            Compound unknown = new Compound(Chemical.Unknown);
            unknown.Display();

            // Adapted chemical compounds
            Compound water = new RichCompound(Chemical.Water);
            water.Display();

            Compound benzene = new RichCompound(Chemical.Benzene);
            benzene.Display();

            Compound ethanol = new RichCompound(Chemical.Ethanol);
            ethanol.Display();

            // Wait for user
            Console.ReadKey();
        }