class Entry { /* fields */ private String name; private int address; private int phone; /* constructor */ Entry(String n, String a, String p) { this.name = n; this.address = a; this.phone = p; } /* accessors */ string getName() { return this.name; } String getAddress() { return this.address; } String getPhone() { return this.phone; } }