From: rohit s. <ro2...@ya...> - 2001-10-11 07:02:41
|
Hi, I have following queries:- 1) Pl go thru this:- Obj2.java class Obj2 extends Obj1{ .... } A.java class A{ .... public Obj2 myMethod() return obj2; } My jython class subclasses from 'A'. In jython class I do something like:- obj=self.myMethod() But if I want to typecast it to Obj1..I try follwoing:- obj=(Obj1)self.myMethod() Doing this, I get a syntax error. So put simply, how can I upcast or downcast in jython. 2) Cann't I access methods and variables other then public from my java superclass in my jython subclass Regards, Rohit __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com |