public class UserProfileD3
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
age
The age.
|
protected java.lang.String |
description
The description.
|
protected boolean |
gender
The gender.
|
protected java.lang.String |
name
The name.
|
Constructor and Description |
---|
UserProfileD3()
Create a new user profile.
|
UserProfileD3(java.lang.String name,
int age,
boolean gender,
java.lang.String description)
Create a new user profile.
|
Modifier and Type | Method and Description |
---|---|
int |
getAge()
Get the age.
|
java.lang.String |
getDescription()
Get the description.
|
java.lang.String |
getName()
Get the name.
|
boolean |
isGender()
Get the gender.
|
void |
setAge(int age)
Set the age.
|
void |
setDescription(java.lang.String description)
Set the description.
|
void |
setGender(boolean gender)
Set the gender.
|
void |
setName(java.lang.String name)
Set the name.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.lang.String name
protected int age
protected boolean gender
protected java.lang.String description
public UserProfileD3()
public UserProfileD3(java.lang.String name, int age, boolean gender, java.lang.String description)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public int getAge()
public void setAge(int age)
age
- The age to set.public boolean isGender()
public void setGender(boolean gender)
gender
- The gender to set.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description to set.public java.lang.String toString()
toString
in class java.lang.Object