public class IrisFlower
extends java.lang.Object
| Constructor and Description |
|---|
IrisFlower(float sepalLength,
float sepalWidth,
float petalLength,
float petalWidth)
Constructs a new
IrisFlower instance. |
| Modifier and Type | Method and Description |
|---|---|
float |
getPetalLength()
Returns the petal length.
|
float |
getPetalWidth()
Returns the petal width.
|
float |
getSepalLength()
Returns the sepal length.
|
float |
getSepalWidth()
Returns the sepal width.
|
public IrisFlower(float sepalLength,
float sepalWidth,
float petalLength,
float petalWidth)
IrisFlower instance.sepalLength - the sepal lengthsepalWidth - the sepal widthpetalLength - the petal lengthpetalWidth - the petal widthpublic float getSepalLength()
public float getSepalWidth()
public float getPetalLength()
public float getPetalWidth()