Class GardenPlant

Object
GardenPlant
All Implemented Interfaces:
Plant

public class GardenPlant extends Object implements Plant
  • Field Details

    • name

      private final String name
    • type

      private final String type
    • pHLow

      private int pHLow
    • pHHigh

      private int pHHigh
    • amountOfSunshine

      private String amountOfSunshine
  • Constructor Details

    • GardenPlant

      public GardenPlant(String name, int pHLow, int pHHigh, String amountOfSunshine, String type)
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface Plant
    • getName

      public String getName()
      Specified by:
      getName in interface Plant
    • getpHLow

      public int getpHLow()
      Specified by:
      getpHLow in interface Plant
    • setpHLow

      public void setpHLow(int pHLow)
      Specified by:
      setpHLow in interface Plant
    • getpHHigh

      public int getpHHigh()
      Specified by:
      getpHHigh in interface Plant
    • setpHHigh

      public void setpHHigh(int pHHigh)
      Specified by:
      setpHHigh in interface Plant
    • getAmountOfSunshine

      public String getAmountOfSunshine()
      Specified by:
      getAmountOfSunshine in interface Plant
    • setAmountOfSunshine

      public void setAmountOfSunshine(String amountOfSunshine)
      Specified by:
      setAmountOfSunshine in interface Plant
    • main

      public static void main(String[] args)