public class Basketball
extends java.lang.Object
Constructor and Description |
---|
Basketball(double givenDiameter)
Constructs an uninflated Basketball with the given diameter.
|
Modifier and Type | Method and Description |
---|---|
double |
getCircumference()
Returns the circumference of this Basketball.
|
double |
getDiameter()
Returns the diameter of this Basketball.
|
void |
inflate()
Inflates this Basketball.
|
boolean |
isDribbleable()
Determines whether this Basketball can be dribbled.
|
public Basketball(double givenDiameter)
givenDiameter
- the diameter for this Basketballpublic void inflate()
public double getDiameter()
public boolean isDribbleable()
public double getCircumference()