java.lang.ObjectPerson
public class Person
Constructor Summary | |
---|---|
Person(java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
getName()
Returns name of the person. |
void |
start()
Go. |
void |
stop()
Stop. |
void |
writeInfo()
Writes information about the object to std. output |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Person(java.lang.String name)
name
- Name of the personMethod Detail |
---|
public java.lang.String getName()
public void start()
Going
start
in interface Going
public void stop()
Going
stop
in interface Going
public void writeInfo()
writeInfo
in interface Informing