class Person { def isst(essen : String) = println("Hmm " + essen); def +(person : Person) = "Frust"; }; val thomas = new Person; thomas.isst("Zucker"); thomas isst "Zucker" val horst = new Person; val monika = new Person; println(horst + monika);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment