Advertisement
porteno

FlashLight

Dec 7th, 2019
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public class FlashLight {
  2. private String model;
  3. private double price;
  4.  
  5. public FlashLight(String model, double price) {
  6. this.model = model;
  7. this.price = price;
  8. }
  9.  
  10. public String getModel() {
  11. return model;
  12. }
  13.  
  14. public void setModel(String model) {
  15. this.model = model;
  16. }
  17.  
  18. public double getPrice() {
  19. return price;
  20. }
  21.  
  22. public void setPrice(double price) {
  23. this.price = price;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement