public class Connection extends java.lang.Object
| Constructor and Description | 
|---|
Connection(MailSystem s,
          Telephone p)
Construct a Connection object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
dial(java.lang.String key)
Respond to the user's pressing a key on the phone touchpad 
 | 
void | 
hangup()
The user hangs up the phone. 
 | 
void | 
record(java.lang.String voice)
Record voice. 
 | 
public Connection(MailSystem s, Telephone p)
s - a MailSystem objectp - a Telephone objectpublic void dial(java.lang.String key)
key - the phone key pressed by the userpublic void record(java.lang.String voice)
voice - voice spoken by the userpublic void hangup()