wiley_pastebin icon

Abstract Classes 2

wiley_pastebin | PRO | 03/18/19 01:45:55 PM UTC | 0 ⭐ | 2349 👁️ | Never ⏰ | []
Java |

370 B

|

None

|

0 👍

/

0 👎

public abstract class Item { 
 private String title;
 private double playTime; 
 private boolean ownIt; 
 private String comment; 
 
 public Item(String title, double playTime, 
           boolean ownIt, String comment) { 
 //... 
} 
 
 public String getTitle() { 
  return title; 
 } 
 
 //... other accessors 
 
 public abstract String getDescription(); 
}

Comments