public class Client extends Contact implements java.io.Serializable
FIRST_NUMBER
Constructor and Description |
---|
Client(java.lang.String name,
java.lang.String address,
java.lang.String rating)
Construct a client having the given name, address,
and credit rating; and assign a unique number to it.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRating()
Determine the credit rating of
this client. |
void |
setRating(java.lang.String rating)
Change the rating of
this client. |
compareTo, equals, getAddress, getLastContactNumber, getName, getNumber, hashCode, setAddress, setName, toString
public Client(java.lang.String name, java.lang.String address, java.lang.String rating)
Contact
.name
- the name of the contact.address
- the address of the client.rating
- the credit rating of the client.java.lang.RuntimeException
- if any of the
parameters is null.public java.lang.String getRating()
this
client.this
client.public void setRating(java.lang.String rating)
this
client.rating
- the new credit rating.java.lang.RuntimeException
- if the parameters is null.