开发者

calling members of class to another class

hii every one I m using Applets i ve three classes ie three applets and I need some members(variables) of one class into another class

when i m trying to access variables from one 开发者_运维知识库class to another class by creating of object of called class in to calling class then it doesnt give wright output it access those variables but gives null or zero values


I think that this isn't possible.

Won't each applet be loaded by a different classloader? Won't this mean that the class namespaces will be kept separate by the JVM?

If that is the case, you will either have 3 versions of each class in existence (with no sharing of state ...) or the classloader will fail because it cannot find the other 2 classes when loading the first of the applets.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜