G
Gaijinco
I have always felt that there are a lot of topics that you learned the
facts but you only grasp the matter sometime down the road.
For me, two of those topics are inner classes and anonymous classes.
I was thinking of a class Agenda. For it I would use a class Person
which also uses another class Date for her birthday.
When I was modeling Person, I made an atribute to be an object of
class Date. Suddenly I thought that maybe it was a good idea to made
it an inner classes. But then I supossed it would be even better to
make it an inner derived class. But to make it easier to acces members
of the inner class I made it annonymous.
Is this good practice? Does it makes sense? What good uses of inner
classes and anonymous classes do you know?
Thanks a lot.
facts but you only grasp the matter sometime down the road.
For me, two of those topics are inner classes and anonymous classes.
I was thinking of a class Agenda. For it I would use a class Person
which also uses another class Date for her birthday.
When I was modeling Person, I made an atribute to be an object of
class Date. Suddenly I thought that maybe it was a good idea to made
it an inner classes. But then I supossed it would be even better to
make it an inner derived class. But to make it easier to acces members
of the inner class I made it annonymous.
Is this good practice? Does it makes sense? What good uses of inner
classes and anonymous classes do you know?
Thanks a lot.