Beispiel #1
0
        public void Main()
        {
            PhotoAlbum    album1 = new PhotoAlbum();
            PhotoAlbum    album2 = new PhotoAlbum(24);
            BigPhotoAlbum album3 = new BigPhotoAlbum();

            Console.WriteLine($"Number of pages of album 1: {album1.GetNumberOfPages()}");
            Console.WriteLine($"Number of pages of album 2: {album2.GetNumberOfPages()}");
            Console.WriteLine($"Number of pages of album 3: {album3.GetNumberOfPages()}");
        }
Beispiel #2
0
        public void Test()
        {
            PhotoAlbum albumDefault = new PhotoAlbum();

            PhotoAlbum album24pages = new PhotoAlbum(24);

            BigPhotoAlbum bigPhotoAlbum = new BigPhotoAlbum();

            Console.WriteLine($"albumDefault pages={albumDefault.GetNumberOfPages()}");

            Console.WriteLine($"album24pages pages={album24pages.GetNumberOfPages()}");

            Console.WriteLine($"bigPhotoAlbum page={bigPhotoAlbum.GetNumberOfPages()}");
        }