Clock myClock = new Clock(); Fish fish1 = new Fish(); Greeter rey = new Greeter();
fish1.moveForward(); fish1.turnAround(); rey.sayHello();
int hr = myClock.getHour(); int min = myClock.getMinute(); System.out.println("Time is " + myClock.getHour() + ":" + myClock.getMinute());
myClock.setHour(10); rey.sayThis("Hi, how are you?"); int fahrenheit = converter.convertFromCelsius(20);
Key question: For any class, how do we know what methods are available, whether they are Do-Something or Return-Something methods, and whether they need information passed to them?Read the Class Documentation!