package p; /** * * @author HP */ public class Contact { private String name; private String phoneNo; private boolean emergency; public Contact(