This class demonstrates constructors, the toString method, and
instance fields.
-
Constructor Summary
Constructors
-
Method Summary
static void
Program that creates and prints a Person
double
Returns this Person
's shoe size.
Returns a String represenation of this
person
-
Constructor Details
-
Person
Creates a new person
-
Method Details
-
shoeSize
Returns this Person
's shoe size.
-
toString
Returns a String represenation of this
person
- Overrides:
toString
in class Object
-
main
Program that creates and prints a Person