Skip to content

Instantly share code, notes, and snippets.

Last active Aug 20, 2020
What would you like to do?
An example of a class Person
public class Person {
private String name;
private Date dateBirth;
public void walk(){ ... }
public void talk(){ ... }
public eat(){ ... }
public String toString() {
return "Name: "+
+ "\nDate of Birthday: "+ this.dateBirth.toString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment