java.lang.Object
com.xavierloeraflores.inventorymanagement.Part
Direct Known Subclasses:
InHouse, Outsourced

public abstract class Part extends Object
An abstract class representing parts
Author:
xavierloeraflores
  • Field Details

    • id

      private int id
    • name

      private String name
    • price

      private double price
    • stock

      private int stock
    • min

      private int min
    • max

      private int max
  • Constructor Details

    • Part

      public Part(int id, String name, double price, int stock, int min, int max)
  • Method Details

    • getId

      public int getId()
      Returns:
      the id
    • setId

      public void setId(int id)
      Parameters:
      id - the id to set
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getPrice

      public double getPrice()
      Returns:
      the price
    • setPrice

      public void setPrice(double price)
      Parameters:
      price - the price to set
    • getStock

      public int getStock()
      Returns:
      the stock
    • setStock

      public void setStock(int stock)
      Parameters:
      stock - the stock to set
    • getMin

      public int getMin()
      Returns:
      the min
    • setMin

      public void setMin(int min)
      Parameters:
      min - the min to set
    • getMax

      public int getMax()
      Returns:
      the max
    • setMax

      public void setMax(int max)
      Parameters:
      max - the max to set