Skip to content

Instantly share code, notes, and snippets.

Created January 16, 2010 10:54
What would you like to do?
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