|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectope.example.Person
public class Person
The Person
class represents persons in an imaginary computer system. This
class doesn't currently have any useful functionality because its only
purpose is to demonstrate doc comments in a screencast.
This sentence is supposed to begin a new paragraph. This paragraph could for example demonstrate the usage of this class or include practical examples.
Constructor Summary | |
---|---|
Person(String name)
This constructor creates a new Person object with a specified
name. |
Method Summary | |
---|---|
String |
getName()
Returns this person's name. |
void |
setName(String name)
Sets a new name for this person. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Person(String name)
Person
object with a specified
name. It requires a String
as its name parameter. Passing a
null
reference as a name may cause exceptions when using the
object's methods.
name
- the name of this personMethod Detail |
---|
public String getName()
public void setName(String name)
name
- the name to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |