Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 16 17 20 21 public class AudioVisual implements Item { 22 23 private int yearMade; 24 private String category; 25 private String name; 26 private String desc; 27 private Integer runtime; 28 private String type; 29 30 public void setYearMade(int yearMade) { 32 this.yearMade = yearMade; 33 } 34 35 public void setCategory(String category) { 36 this.category = category; 37 } 38 39 public void setName(String name) { 40 this.name = name; 41 } 42 43 public void setDesc(String desc) { 44 this.desc = desc; 45 } 46 47 public void setRuntime(Integer runtime) { 49 this.runtime = runtime; 50 } 51 52 public void setType(String type) { 53 this.type = type; 54 } 55 56 public void print() { 57 System.out.println("AudioVisual:"); 58 System.out.println(" type=" + type); 59 System.out.println(" yearMade=" + yearMade); 60 System.out.println(" category=" + category); 61 System.out.println(" name=" + name); 62 System.out.println(" desc=" + desc); 63 System.out.println(" runtime=" + runtime); 64 } 65 } 66 67
| Popular Tags
|