public class NameNumber extends java.lang.Object implements NameNumberIf
Constructor and Description |
---|
NameNumber()
Constructor
|
NameNumber(java.lang.String name,
int number)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
int |
getNumber() |
void |
setName(java.lang.String name) |
void |
setNumber(int number) |
java.lang.String |
toString()
Returns a string containing the attributes of the NameNumber object
|
public NameNumber()
public NameNumber(java.lang.String name, int number)
name
- the namenumber
- the numberpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
getName
in interface NameNumberIf
public void setName(java.lang.String name)
setName
in interface NameNumberIf
name
- The name to set.public int getNumber()
getNumber
in interface NameNumberIf
public void setNumber(int number)
setNumber
in interface NameNumberIf
number
- the number to setCopyright © 2018 DS Data Systems UK Ltd.