Skip to main content

Problem with Javascript

No replies
henry_az
Offline
Joined: 2010-12-27

Hi, I encount a problem in using javax.script.ScriptEngine. How can i override a abstract class like this:

importClass(parentClass);

var childClass=new parentClass(){

method1:function(){},

method2:function(){}

}

method1 and method2 has defined in java class parentClass.