Hi group. I think this is an stupid question and it can be resolve with
a couple of lines of code but just now it is impossible to me test it.
The question is: I have a clase A that implements a method "m" of the
interface I. Can I modify attributes of class A into the implementation
of "m" ??
I think yes, but I'm creating a plugins for an existent program
(PoseidonUML) and code into the implementation of an interface method
doesn't modify the class attributes. It is very strage, no?
Thanks in advice,
Antonio.

Signature
-----------------------------------------------------
Antonio Santiago Pérez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Politècnica de Catalunya
-----------------------------------------------------
Remon van Vliet - 16 Jun 2005 13:14 GMT
If i read your explanation correctly (which was a bit of a challenge) then
yes :
interface I {
public void m();
}
class A implements I {
public int v;
public void m() {
v = 0xff;
}
}
I dont see how there being an interface is relevant for this example though,
but then it is entirely possible i didnt understand your question properly.
Remon van Vliet
> Hi group. I think this is an stupid question and it can be resolve with
> a couple of lines of code but just now it is impossible to me test it.
[quoted text clipped - 9 lines]
> Thanks in advice,
> Antonio.