Esempio n. 1
0
        static void Main(string[] args)
        {
            Compound stuff = new Compound("UnKnown");
            stuff.Display();

            Compound water = new RichCompound("Water");
            water.Display();

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

            Compound alcohol = new RichCompound("Alcohol");
            alcohol.Display();

            Console.ReadKey();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Compound stuff = new Compound("UnKnown");

            stuff.Display();

            Compound water = new RichCompound("Water");

            water.Display();

            Compound benzene = new RichCompound("Benzene");

            benzene.Display();

            Compound alcohol = new RichCompound("Alcohol");

            alcohol.Display();

            Console.ReadKey();
        }