public class Badge extends Object
Constructor and Description |
---|
Badge()
Initializes this badge with the name "No Name" and
today as the expiry date.
|
Badge(String name,
Date expiryDate)
Initializes this badge with the given name and the
given expiry date.
|
Modifier and Type | Method and Description |
---|---|
Date |
getExpiryDate()
Returns the expiry date of this badge.
|
String |
getName()
Returns the name of this badge.
|
public Badge(String name, Date expiryDate)
name
- the name of this badge.expiryDate
- the expiry date of this badge.public Badge()