D
David Sobey
sorry this may be a bit too generic for this newsgroup but neways:
I've got this:
class Event
{
reminder rem;
reccurance rec;
...other stuff;
}
When i need to check if a reminder needs to occur, i call
event.rem.checkreminder, however this function needs to access stuff in
the recurrance class. Obviously this can't happen.
I don't want to solve this problem with inheritence if possible, as
it's not really a logical modelling of the problem. And i also want to
avoid creating a function event.checkreminder, that passes "rec" to the
reminder class, as it doesn't make much sense either. Does anyone one
have some brilliant suggestions that will wash all my troubles away?
cheers!
dave
I've got this:
class Event
{
reminder rem;
reccurance rec;
...other stuff;
}
When i need to check if a reminder needs to occur, i call
event.rem.checkreminder, however this function needs to access stuff in
the recurrance class. Obviously this can't happen.
I don't want to solve this problem with inheritence if possible, as
it's not really a logical modelling of the problem. And i also want to
avoid creating a function event.checkreminder, that passes "rec" to the
reminder class, as it doesn't make much sense either. Does anyone one
have some brilliant suggestions that will wash all my troubles away?

cheers!
dave