Advertisement
AleksandarH

Clothes

Dec 12th, 2023
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.01 KB | None | 0 0
  1. package com.example.a20621646_k2;
  2.  
  3. public class Clothes {
  4.     private String type;
  5.     private double price;
  6.     private int quantity;
  7.     private String originCountry;
  8.  
  9.     public Clothes(String type, double price, int quantity, String originCountry) {
  10.         this.type = type;
  11.         this.price = price;
  12.         this.quantity = quantity;
  13.         this.originCountry = originCountry;
  14.     }
  15.  
  16.     public void setType(String type) {
  17.         this.type = type;
  18.     }
  19.  
  20.     public double getPrice() {
  21.         return price;
  22.     }
  23.  
  24.     public void setPrice(double price) {
  25.         this.price = price;
  26.     }
  27.  
  28.     public int getQuantity() {
  29.         return quantity;
  30.     }
  31.  
  32.     public void setQuantity(int quantity) {
  33.         this.quantity = quantity;
  34.     }
  35.  
  36.     public String getOriginCountry() {
  37.         return originCountry;
  38.     }
  39.  
  40.     public void setOriginCountry(String originCountry) {
  41.         this.originCountry = originCountry;
  42.     }
  43.  
  44.     public String getType() {
  45.         return type;
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement