Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## book.ex4.model
Class Name

    java.lang.Object
      book.ex4.model.Name

    public class Name

extends java.lang.Object

Field Summary
`protected java.lang.String` | `firstName`
`protected java.lang.String` | `lastName`

Constructor Summary
`Name()`
`Name(java.lang.String firstName, java.lang.String lastName)`

Method Summary
`java.lang.String` | `getFirstName()`
`java.lang.String` | `getLastName()`
`void` | `setFirstName(java.lang.String firstName)`
`void` | `setLastName(java.lang.String lastName)`
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### firstName

    protected java.lang.String firstName

### lastName

    protected java.lang.String lastName

Constructor Detail

### Name

    public Name()

### Name

    public Name(java.lang.String firstName,
                java.lang.String lastName)

Method Detail

### getFirstName

    public java.lang.String getFirstName()

### setFirstName

    public void setFirstName(java.lang.String firstName)

### getLastName

    public java.lang.String getLastName()

### setLastName

    public void setLastName(java.lang.String lastName)

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD