Advertisement
Guest User

Product

a guest
Nov 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. package com.yannickxd2.onlineShop;
  2.  
  3. public class Product {
  4.  
  5. private String name;
  6. private double price;
  7.  
  8. public Product(String name, double price) {
  9. super();
  10. this.name = name;
  11. this.price = price;
  12. }
  13.  
  14. /**
  15. * @return the name
  16. */
  17. public String getName() {
  18. return name;
  19. }
  20.  
  21. /**
  22. * @return the price
  23. */
  24. public double getPrice() {
  25. return price;
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement