Skip to content

Instantly share code, notes, and snippets.

@rssh
Created September 15, 2014 04:36
Show Gist options
  • Save rssh/82fc8a3f6196b616add3 to your computer and use it in GitHub Desktop.
Save rssh/82fc8a3f6196b616add3 to your computer and use it in GitHub Desktop.
jdv_article_2
public class Person
{
private String firstName;
private String lastName;
String getFirstName() { return firstName; }
void setFirstName(String firstName) { this.firstName = firstName; }
String getLastName() { return lastName; }
void setLastName(String lastName) { this.lastName = lastName; }
int hashCode() ....
boolean equals(Object o) { .... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment