예제 #1
0
        /// <summary>

        /// Entry point into console application.

        /// </summary>

        static void Main()
        {
            // 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();

            // Wait for user

            Console.ReadKey();
        }
예제 #2
0
파일: adapterRW.cs 프로젝트: vid4n/ooproj
        static void Main()
        {
            // Neadaptirano hemijsko jedinjenje
            Compound stuff = new Compound("Unknown");

            stuff.Display();

            // Adaptirano hemijsko jedinjenje
            Compound water = new RichCompound("Water");

            water.Display();

            Compound benzene = new RichCompound("Benzene");

            benzene.Display();

            Compound alcohol = new RichCompound("Alcohol");

            alcohol.Display();

            // Čekanje na korisnikov unos
            Console.Read();
        }
예제 #3
0
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        static void Main()
        {
            // 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();

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