Advertisement
techno-

Product.java

Nov 22nd, 2022
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. public class Product {
  2.     private int id;
  3.     private int stock;
  4.  
  5.     public Product(int id, int stock) {
  6.         this.id = id;
  7.         this.stock = stock;
  8.     }
  9.  
  10.     public int getId() {
  11.         return id;
  12.     }
  13.  
  14.     public void setId(int id) {
  15.         this.id = id;
  16.     }
  17.  
  18.     public int getStock() {
  19.         return stock;
  20.     }
  21.  
  22.     public void setStock(int stock) {
  23.         this.stock = stock;
  24.     }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement