public void speak () { System.out.println("Hey Barney ..."); }
fred.speak();
public int add (int a, int b) { return a+b; }
public void setFirstName (String firstName) { this.firstName = firstName; }
public void move (double x, double y) { this.x = x; this.y = y; }