From: <bc...@wo...> - 2001-01-29 13:51:45
|
[Oliver Rutherfurd] >Is there any documentation regarding how jython handles static classes or >static methods of classes? Not really. Contributions are welcome. >I'm wondering things like whether a java static >class can be sub classed in jython, (and then end up with a static class) Yes, although I'm not entirely sure what you mean by a static class: package pack; public class Foo { public static class Bar { public void bar() { System.out.println("bar"); } } } import pack class SubBar(pack.Foo.Bar): def bar(self): print "SubBar" pack.Foo.Bar.bar(self) SubBar().bar() >whether you can declare a class method as static (for a non-static class) >which is written using jython. No. regards, finn |