Skip to content

Instantly share code, notes, and snippets.

@enukane
Created January 16, 2010 10:54
Show Gist options
  • Save enukane/278781 to your computer and use it in GitHub Desktop.
Save enukane/278781 to your computer and use it in GitHub Desktop.
package scalatest;
class Hoge{
def printHoge():Unit = println("Hoge in scala!")
def getHoge():String = "Hoge"
def add(i:Int, j:Int):Int = i + j
def getMsg(msg:String):String = "Hoget is " + msg
@native def callbackMethod(num:Int):Int = { 18}
def invokeMethod(num:Int):Int = {
println("Invoking Method");
return callbackMethod(num);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment