Re: [Tutor] advice on creating and working with a complex datastructure

2009-07-21 Thread Serdar Tumgoren
>> >> I do not think any of these meet the criteria for inheritance. None of >> them "is a" kind of any of the others. >> I refreshed on my OO terminology and I see your point -- that composition is a more appropriate fit here than inheritance. >> I don;t like the use of Filing for a class name,

Re: [Tutor] advice on creating and working with a complex datastructure

2009-07-21 Thread Wayne
On Mon, Jul 20, 2009 at 6:05 PM, Alan Gauld wrote: > "Serdar Tumgoren" wrote > >> Aha, okay, the multiple classes approach makes sense. But would these >> be nested classes, >> > > No although they would probably have attributes containing > the related lists. Thus Race might have a list of Cand

Re: [Tutor] advice on creating and working with a complex datastructure

2009-07-20 Thread Alan Gauld
"Serdar Tumgoren" wrote Aha, okay, the multiple classes approach makes sense. But would these be nested classes, No although they would probably have attributes containing the related lists. Thus Race might have a list of Candidates. And Candidate would have a list of Committees etc. perh