Class IrisFlower


  • public class IrisFlower
    extends java.lang.Object
    A class holds the iris flower features.
    • Constructor Summary

      Constructors 
      Constructor Description
      IrisFlower​(float sepalLength, float sepalWidth, float petalLength, float petalWidth)
      Constructs a new IrisFlower instance.
    • Constructor Detail

      • IrisFlower

        public IrisFlower​(float sepalLength,
                          float sepalWidth,
                          float petalLength,
                          float petalWidth)
        Constructs a new IrisFlower instance.
        Parameters:
        sepalLength - the sepal length
        sepalWidth - the sepal width
        petalLength - the petal length
        petalWidth - the petal width
    • Method Detail

      • getSepalLength

        public float getSepalLength()
        Returns the sepal length.
        Returns:
        the sepal length
      • getSepalWidth

        public float getSepalWidth()
        Returns the sepal width.
        Returns:
        the sepal width
      • getPetalLength

        public float getPetalLength()
        Returns the petal length.
        Returns:
        the petal length
      • getPetalWidth

        public float getPetalWidth()
        Returns the petal width.
        Returns:
        the petal width