/** * Write a description of class Produkt here. * * @author (your name) * @version (a version number or a date) */ public abstract class Produkt { private String title; private int price; public Produkt(String title, int price) { this.title = title; this.price = price; } /** * This method set a new price * @param nyPris */ public void setPrice(int nyPris) { price = nyPris; } /** * This method returns the price of a book * @return the price */ public int getPrice() { return price; } /** * This method returns the title of a book * @return the title */ public String getTitle() { return title; } public abstract String getProduktType(); public void printDetails() { System.out.println(""+getProduktType()+" "+getTitle()+" "+getPrice()); } }