From: Chris Atkins <Chr...@al...>
> I wish to compile a jython class which subclasses a java class. Suppose the
> java class I have subclassed has both overloaded constructors and member
> functions as follows:
> public void foo()
>
> public void foo(String name)
>
> public void foo(String name, Object[] args)
>
> public myClass()
>
> public myClass(String args[])
>
> How would one set up the "@sig" statements so that all methods are visible
> from the java world? Is this possible?
>
if the original class already have methods with that signatures
then you don't need @sig, @sig purpose is for adding
new signatures.
import myClass
class Sub(myClass):
def __init__(self,args=[]):
print args
def foo(self,name=None,args=[]):
print name,args
regards.
|