Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public abstract class Camera {
- private String brand;
- private String model;
- private String description;
- public Camera(String brand, String description, String model) {
- this.brand = brand;
- this.description = description;
- this.model = model;
- }
- public Camera(String brand, String model) {
- this(brand, "No description given.", model);
- }
- public String getDescription() {
- return description;
- }
- public String getModel() {
- return model;
- }
- public String getBrand() {
- return brand;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement