Android
package samse.sample;
import java.io.*;
class HelloWorld extends Object {
public HelloWorld() {
}
public void print() {
System.out.println("Hello World");
}
}
iOS
@interface HelloWorld : NSObject
- (id) init;
- (void) print;
@end
@implementation HelloWorld
- (id) init {
return [super init];
}
- (void) print {
NSLog(@"HelloWorld!");
}
@end
C#
Using System;
namespace Samse {
class HelloWorld {
public static void print() {
Console.WriteLine("HelloWorld");
}
}
}