예제 #1
0
            public static void Main()
            {
                PhotoAlbum album1 = new PhotoAlbum();

                Console.WriteLine(album1.GetNumberOfPages());
                PhotoAlbum album2 = new PhotoAlbum(24);

                Console.WriteLine(album2.GetNumberOfPages());
                PhotoAlbum album3 = new BigPhotoAlbum();

                Console.WriteLine(album3.GetNumberOfPages());
            }
예제 #2
0
        static void Main()
        {
            PhotoAlbum wedding = new PhotoAlbum();

            Console.WriteLine("Weeding pages: {0}", wedding.GetNumberOfPages());

            PhotoAlbum trip = new PhotoAlbum(24);

            Console.WriteLine("Trip pages: {0}", trip.GetNumberOfPages());

            BigPhotoAlbum family = new BigPhotoAlbum();

            Console.WriteLine("Family pages: {0}", family.GetNumberOfPages());
        }
예제 #3
0
        static void Main()
        {
            var wedding = new PhotoAlbum();

            Console.WriteLine(wedding.GetNumberOfPages());

            var trip = new PhotoAlbum(30);

            Console.WriteLine(trip.GetNumberOfPages());

            var family = new BigPhotoAlbum();

            Console.WriteLine(family.GetNumberOfPages());
        }
예제 #4
0
            static void Main()
            {
                var Album1 = new PhotoAlbum();

                Console.WriteLine("Pages of Album1 {0}", Album1.GetNumberOfPages());

                var myAlbum2 = new PhotoAlbum(24);

                Console.WriteLine("Pages of Album2 {0}", myAlbum2.GetNumberOfPages());

                var myBigPhotoAlbum = new BigPhotoAlbum();

                Console.WriteLine("Pages of myBigPhotoAlbum {0}", myBigPhotoAlbum.GetNumberOfPages());
            }
예제 #5
0
            static void Main()
            {
                bool debug = false;

                PhotoAlbum myAlbum1 = new PhotoAlbum();

                Console.WriteLine(myAlbum1.GetNumberOfPages());

                PhotoAlbum myAlbum2 = new PhotoAlbum(24);

                Console.WriteLine(myAlbum2.GetNumberOfPages());

                BigPhotoAlbum myBigPhotoAlbum1 = new BigPhotoAlbum();

                Console.WriteLine(myBigPhotoAlbum1.GetNumberOfPages());

                if (debug)
                {
                    Console.ReadLine();
                }
            }