Accessing thirdy party class variable...

I am pretty new to JAVA, and I was wondering if the following is doable.

I have a class A and when it runs it invokes two different classes B and C. Is there anyway I can access a variable in B from C or vice versa? Any help would be greatly appreciated. Thanks!

sincerely,

Yosep

[311 byte] By [yosep] at [2007-9-30 11:58:05]
# 1

accessing a 3rd party class variable?

C.someClassVariable

Or do you mean a instance variable.

Depends on the scoping too by the way.

Anyway way, if you want to access an instance variable, you'll have to have a reference to the object instance it's from.

salpeter at 2007-7-4 14:09:41 > top of Java-index,Other Topics,Patterns & OO Design...