?? addressphone.java
字號:
import java.io.*;
public class AddressPhone extends Address
{
protected String phone;
public AddressPhone()
{
first = email = phone = "";
}
public AddressPhone(String _first, String _email, String _phone)
{
super(_first, _email);
phone = _phone;
}
public String toString()
{
return super.toString() + " - " + phone;
}
public void save(DataOutputStream out) throws IOException
{
out.writeUTF("AddressPhone");
out.writeUTF(first);
out.writeUTF(email);
out.writeUTF(phone);
}
public void load(DataInputStream in) throws IOException
{
super.load(in);
phone = in.readUTF();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -