YAFL ![]() |
similar languages: | Modula Oberon Obliq Leda Pascal Phantom PL/0 PL/0E | |
Description: | YAFL is a very clearly structured and modularized, object-oriented programming-language. It inherits features from Algol, Eiffel, Modula, Ada, C and C++. |
Hello World | Michael Neumann |
DEFINITION MODULE HelloWorld; CLASS HelloClass; METHOD CREATE; METHOD Main; END HelloClass; END HelloWorld; IMPLEMENTATION MODULE HelloWorld; FROM Streams IMPORT StdOut; CLASS HelloClass; METHOD CREATE; BEGIN -- wird aufgerufen um das Objekt zu initialisieren Main; END; METHOD Main; BEGIN StdOut.WriteLine ("Hello World"); END Main; END HelloClass; END HelloWorld; |
Prints "Hello World" onto the
screen. |