Exemple #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()}");
        }
Exemple #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();
        }
Exemple #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();
        }
Exemple #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();
        }
        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();
        }
Exemple #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();
            }
        }