Skip to main content

Problem with Javascript

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
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.