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