Name: Anonymous 2009-09-04 6:37
class Hello {
string mesg;
new() { mesg = "Hello World!\n"; }
static void main() {
print(mesg);
}
}
class Hello {
string mesg;
new() { mesg = "Hello World!\n"; }
static void main() {
print(mesg);
}
}
class Sample : Object {
void greeting () {
stdout.printf ("Hello World\n");
}
static void main (string[] args) {
var sample = new Sample ();
sample.greeting();
}
}