public class Book {
    public int id;
    public String title;
    public int bookCount = 0;
    public Book(String title) {
        this.id = random.nextint();
        this.title = title;
        bookCount++;
    }
    public String getTitle() {
        return title;
    }
    public int getBookCount() {
        return bookCount;
    }
  
    public static void main(String[] args) {
        Book book1 = new Book("Moby dick");
        Book book2 = new Book("berlin boxing club");
        Book.getBookCount()
    
    }
}
public class Novel extends Book{
    
}
public class Novel extends Book{
Private String Author();
Private int checkouts;
Private double shelflife;
public Novel(string author2){
super();
int Checkouts=2;
}
public String getAuthor
public double shelflife(){
}
}
public class Textbook extends Book{
private String company;
private double shelflife;
private int checkouts;
public Textbook(String company2){
super();
company="scholastic";
}
public String getCompany(){
    return company; 
}
}
public class Title {
  private int id;
  private String title;
  private static int bookCount = 0;
  public Title(String title) {
    this.id = ++bookCount;
    this.title = title;
    
  }
  public int getId() {
    return id;
  }
  public String getTitle() {
    return title;
  }
  public static int getBookCount() {
    return bookCount;
  }
  
  public static void main(String[] args) {
    Title book1 = new Title("Berlin boxing club");
    Title book2 = new Title("Moby dick");
    System.out.println(book1.toString());
    System.out.println(book2.toString());
    System.out.println("Book count: " + Title.getBookCount());
}
@Override
public String toString() {
    return "Book ID: " + id + ", Title: " + title;
}
}
Title.main(null);
public class Title {
    private int id;
    private String title;
    private static int bookCount = 0;
  
    public Title(String title) {
      this.id = ++bookCount;
      this.title = title;
      
    }
  
    public int getId() {
      return id;
    }
  
    public String getTitle() {
      return title;
    }
  
    public static int getBookCount() {
      return bookCount;
    }
  
    
  
    public static void main(String[] args) {
      Title book1 = new Title("Berlin boxing club");
      Title book2 = new Title("Moby dick");
  
      System.out.println(book1.toString());
      System.out.println(book2.toString());
      System.out.println("Book count: " + Title.getBookCount());
  }
  
  @Override
  public String toString() {
      return "Book ID: " + id + ", Title: " + title;
  }
  
  }
  
  
  
  
  Title.main(null);