java.lang.Object
com.xavierloeraflores.inventorymanagement.Part
com.xavierloeraflores.inventorymanagement.Outsourced

public class Outsourced extends Part
A class representing outsourced parts in which inherits from the part class.
Author:
xavierloeraflores
  • Field Details

    • companyName

      private String companyName
      The [String] value companyName of the outsourced company than can develop this part.
  • Constructor Details

    • Outsourced

      public Outsourced(int id, String name, double price, int stock, int min, int max, String companyName)
      Constructor initializing this.id to id, this.name to name, this.price to price, this.stock to stock, this.min to min, this.max to max, this.companyName to companyName
      Parameters:
      id - The [int] value id identifying this part.
      name - The [String] value name of this part.
      price - The [double] value name of this part.
      stock - The [int] value stock representing the total stock left of this part.
      min - The [int] value min representing the minimum order quantity of this part.
      max - The [int] value max representing the maximum order quantity of this part.
      companyName - The [String] value companyName of the outsourced company than can develop this part.
  • Method Details

    • getCompanyName

      public String getCompanyName()
      Returns the companyName of the outsourced company than can develop this part.
      Returns:
      [String] value companyName of this outsourced part.
    • setCompanyName

      public void setCompanyName(String companyName)
      Sets the companyName of the outsourced company than can develop this part.
      Parameters:
      companyName - The [String] value companyName of this outsourced part.