Пример #1
0
        static void Main(string[] args)
        {
            PhotoAlbum AlbumTest = new PhotoAlbum(24);

            Console.WriteLine($"Number of pages: {AlbumTest.GetNumberOfPages()}");
            BigPhotoAlbum bigPhotoAlbum = new BigPhotoAlbum();

            Console.WriteLine($"Number of pages: {bigPhotoAlbum.GetNumberOfPages()}");
        }
Пример #2
0
        static void Main(string[] args)
        {
            var firstAlbum   = new PhotoAlbum();
            var secoundAlbum = new PhotoAlbum(24);
            var thirdAlbum   = new BigPhotoAlbum();

            Console.WriteLine(firstAlbum.GetNumberOfPages().ToString());
            Console.WriteLine(secoundAlbum.GetNumberOfPages().ToString());
            Console.WriteLine(thirdAlbum.GetNumberOfPages().ToString());

            Console.ReadLine();
        }
Пример #3
0
        static void Main(string[] args)
        {
            var myAlbum1 = new PhotoAlbum();

            Console.WriteLine(myAlbum1.GetNumberOfPages());

            var myAlbum2 = new PhotoAlbum(24);

            Console.WriteLine(myAlbum2.GetNumberOfPages());

            var myAlbum3 = new BigPhotoAlbum();

            Console.WriteLine(myAlbum3.GetNumberOfPages());

            Console.ReadKey();
        }
Пример #4
0
        static void Main(string[] args)
        {
            PhotoAlbum p1 = new PhotoAlbum();

            Console.WriteLine(p1.GetNumberOfPages());

            PhotoAlbum p2 = new PhotoAlbum(24);

            Console.WriteLine(p2.GetNumberOfPages());

            BigPhotoAlbum bp3 = new BigPhotoAlbum();

            Console.WriteLine(bp3.GetNumberOfPages());

            Console.WriteLine();
            Console.Read();
        }
Пример #5
0
        static void Main(string[] args)
        {
            //first album
            var album1 = new PhotoAlbum();

            Console.WriteLine(album1.GetNumberOfPages());

            //second album
            var album2 = new PhotoAlbum(24);

            Console.WriteLine(album2.GetNumberOfPages());

            //third album
            var bigAlbum = new BigPhotoAlbum();

            Console.WriteLine(bigAlbum.GetNumberOfPages());

            Console.Read();
        }
Пример #6
0
        static void Main()
        {
            bool check = false;

            PhotoAlbum myPhotoAlbum1 = new PhotoAlbum();

            Console.WriteLine(myPhotoAlbum1.GetNumberOfPages());

            PhotoAlbum myPhotoAlbum2 = new PhotoAlbum(24);

            Console.WriteLine(myPhotoAlbum2.GetNumberOfPages());

            BigPhotoAlbum myBigAlbum = new BigPhotoAlbum();

            Console.WriteLine(myBigAlbum.GetNumberOfPages());

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