|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.pdx.cs399J.lang.Person
public class Person
This class demonstrates constructors, the toString method, and instance fields.
| Constructor Summary | |
|---|---|
Person(String name,
double shoeSize)
Creates a new person |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Program that creates and prints a Person |
double |
shoeSize()
Returns this Person's shoe size. |
String |
toString()
Returns a String represenation of this person |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Person(String name,
double shoeSize)
| Method Detail |
|---|
public double shoeSize()
Person's shoe size.
public String toString()
toString in class Objectpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||