public class OO { void hello() { System.out.println("Hello"); } public static void main(String[] args){ OO oo = new OO(); // Hier wird ein OO-Objekt erzeugt, // und in der Variable oo gespeichert. oo.hello(); // Funktion "hello()" aus dem Objekt oo aufrufen. } }