S
sven.furrer
Hi everybody
I have an abstract outer class with an inner class.
My inner class has a isValide() method which uses attributes form my
outer class.
Various sub-classes extend my outer class.
An other package contains classes which in their turn extend all these
subclasses. Let's call them SubSubClass.
Confused? - Me too ;-)
My SubSubClass contains a new attribute, which has to be validated. I
kind of would have to overwrite my isValid() method in my inner
class.
Any idea how I could do this in an "easy" way?
Thanks a lot!
Sven
An attempt to draw the "class diagram":
===========
| abstract
| OuterClass
|
| ------------------
| ¦ InnerClass
| ¦-----------------
| ¦ isValide()
| ------------------
===========
^
¦
¦
===========
SubClass
===========
^
¦
¦ other package:
¦
===========
| SubSubClass
| int newAttr;
| ------------------
| ¦ InnerClass
| ¦-----------------
| ¦ isValide()
| ------------------
===========
I have an abstract outer class with an inner class.
My inner class has a isValide() method which uses attributes form my
outer class.
Various sub-classes extend my outer class.
An other package contains classes which in their turn extend all these
subclasses. Let's call them SubSubClass.
Confused? - Me too ;-)
My SubSubClass contains a new attribute, which has to be validated. I
kind of would have to overwrite my isValid() method in my inner
class.
Any idea how I could do this in an "easy" way?
Thanks a lot!
Sven
An attempt to draw the "class diagram":
===========
| abstract
| OuterClass
|
| ------------------
| ¦ InnerClass
| ¦-----------------
| ¦ isValide()
| ------------------
===========
^
¦
¦
===========
SubClass
===========
^
¦
¦ other package:
¦
===========
| SubSubClass
| int newAttr;
| ------------------
| ¦ InnerClass
| ¦-----------------
| ¦ isValide()
| ------------------
===========