static void Main(string[] args)
        {
            // Non-adapted chemical compound
            Compound unknown = new Compound("Unknown");

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

            water.Display();
            Compound benzene = new RichCompound("Benzene");

            benzene.Display();
            Compound ethanol = new RichCompound("Ethanol");

            ethanol.Display();
            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            Compound unknown = new Compound("unknown");

            unknown.Display();

            Compound water = new RichCompound("water");

            water.Display();

            Compound benzene = new RichCompound("benzene");

            benzene.Display();

            Compound ethanal = new RichCompound("Ethanal");

            ethanal.Display();

            Console.ReadKey();
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            // Non-adapted chemical compound
            var unknown = new Compound("Unknown");

            unknown.Display();

            // Adapted chemical compounds
            var water = new RichCompound("Water");

            water.Display();

            var benzene = new RichCompound("Benzene");

            benzene.Display();

            var ethanol = new RichCompound("Ethanol");

            ethanol.Display();

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