Let's create a project. Make a file, go to Solution Explorer, right-click on the name of the website, select Add, and click on Class. Name the class Book and click on OK. When the Visual Studio message comes up, click on Yes.
The section of the Book class where we'll begin our work looks as shown in the following screenshot:
Figure 6.14.1: Relevant starting section of the Book class
As our first step to making our Book object, enter the following under the open curly brace below public class Book:
public string Title { get; set; }
Remember, public means accessible anywhere. The get and set within curly braces is what we call an automatic property, which means that to set its values, you can set the value of the property directly inside the constructor; you don't need a backing field explicitly defined.
Alright, let's set a couple...