
// UseDome3.java
// Andrew Davison, Nov. 2018, ad@fivedots.coe.psu.ac.th


public class UseDome3
{
  public static void main(String[] args) 
  {
    Database db = new Database();

    CD frankie = new CD("A Swingin' Affair", "Frank Sinatra", 16, 64);
    db.addItem(frankie);
    frankie.setOwn(true);
    frankie.setComment("my favorite Sinatra album");

    db.addItem(new CD("morrison hotel", "the doors", 11, 109));
    db.addItem(new CD("dark side of the moon", "pink floyd", 9, 100));


    db.addItem(new DVD("citizen kane", "welles", 97));

    DVD bro = new DVD("O Brother, Where Art Thou?", "Joel & Ethan Coen", 106);
    bro.setComment("The Coen brothers' best movie!");
    db.addItem(bro);

    db.addItem(new DVD("star wars: a new hope", "lucas", 100));

    db.list();
  }  // end of main()

}  // end of UseDome3 class
