// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class Bog {
   private String titel;
   private String forlag;
   private int udgivelse;
   public Bog() {
      this("", "", 0);
   }
   public Bog(String titel, String forlag, int udgivelse) {
      this.titel = titel;
      this.forlag = forlag;
      this.udgivelse = udgivelse;
   }
   public String getTitel() {
      return titel;
   }
   public void setTitel(String titel) {
      this.titel = titel;
   }
   public String getForlag() {
      return forlag;
   }
   public void setForlag(String forlag) {
      this.forlag = forlag;
   }
   public int getUdgivelse() {
      return udgivelse;
   }
   public void setUdgivelse(int udgivelse) {
      this.udgivelse = udgivelse;
   }
   public String toString() {
      return (titel + " " + forlag + " " + udgivelse);
   }
}
