class Newspaper extends Article { // additional Attributes String title; String city; // Methods void showInfo() { super.showInfo(); // article show info System.out.println ("Type:\tNewspaper"); System.out.println ("City:\t"+title); System.out.println ("City:\t"+city); } // Constructor Newspaper (int code, String title, String city, int price) { super(code, title+" - "+city, price); // use article constructor this.title = new String(title); this.city = new String(city); } }