class structure question

Molaw

New member
Joined
Nov 12, 2007
Messages
2
Programming Experience
1-3
I would like to create a class tat emulates the memory of a serial device I have. The memory breaks down like this.

Memory 'memory holds multiple systems and memory properties
System' System holds multiple Sites and System properties
Sites ' Sites hold multiple groups and Site prperties
Groups' Hold multiple talkgroups and Group properties
Talkgroup ' Hold TalkGroup properties

Now should each one be a separate class or should I use just memory class? If just one memory class the how would I implement it. I would need to add Systems to memory, Sites to Systems, Groups to Sites, and TalkGroups to Groups

Thanks for the advice in advance

MoLaw
 
Create one class for each, add a property to hold the list/collection/array.
 
Back
Top