public string coverStyle;
public Book(string title, string category, string author, int numPages, int currentPage, double isbn, string cover)
this.category = category;
this.numPages = numPages;
this.currentPage = currentPage;
if (this.currentPage != this.numPages)
Console.WriteLine("Current page is now: " + this.currentPage);
Console.WriteLine("At end of book.");
if (this.currentPage != 1)
Console.WriteLine("Current page is now: " + this.currentPage);
Console.WriteLine("At the beginning of the book.");
public static void Main()
Book myBook = new Book("MCSD Certification Toolkit (Exam 70-483)", "Certification", "Covaci, Tiberiu", 648, 1, 81118612095, "Soft Cover");
Console.WriteLine(myBook.title);
Console.WriteLine(myBook.category);
Console.WriteLine(myBook.author);
Console.WriteLine(myBook.numPages);
Console.WriteLine(myBook.currentPage);
Console.WriteLine(myBook.ISBN);
Console.WriteLine(myBook.coverStyle);