ope.example
Class Person

java.lang.Object
  extended by ope.example.Person

public class Person
extends Object

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.

Version:
0.1
Author:
Teemu, Kimmo

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

Person

public Person(String name)
This constructor creates a new 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.

Parameters:
name - the name of this person
Method Detail

getName

public String getName()
Returns this person's name.

Returns:
the name of this person

setName

public void setName(String name)
Sets a new name for this person. A null reference should not be given as a parameter.

Parameters:
name - the name to set