in reply to OO Design -- Separating Data from Presentation
so what is the correct way to tell my data object how it should present itself?
Of course there is never the correct way :-)
However, it might help to split the functionality into three layers:
So all the report specific information stays in the Report class. All the output-format specific information stays in the ReportRender classes.
Hopefully this makes some sort of vague sense :-)
Update: Just noticed - this was my 1000th post. Gosh.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: OO Design -- Separating Data from Presentation
by rkg (Hermit) on Dec 14, 2003 at 01:33 UTC |