SHARE
TWEET

Untitled

a guest Apr 25th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public abstract class Camera {
  2.  
  3.     private String brand;
  4.     private String model;
  5.     private String description;
  6.  
  7.     public Camera(String brand, String description, String model) {
  8.         this.brand = brand;
  9.         this.description = description;
  10.         this.model = model;
  11.     }
  12.  
  13.     public Camera(String brand, String model) {
  14.         this(brand, "No description given.", model);
  15.     }
  16.  
  17.     public String getDescription() {
  18.         return description;
  19.     }
  20.  
  21.     public String getModel() {
  22.         return model;
  23.     }
  24.  
  25.     public String getBrand() {
  26.         return brand;
  27.     }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top