Click here to Skip to main content
15,911,531 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Robin_Roy23-Jul-09 16:11
Robin_Roy23-Jul-09 16:11 
GeneralRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Frygreen24-Jul-09 9:15
Frygreen24-Jul-09 9:15 
GeneralRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Robin_Roy26-Jul-09 17:40
Robin_Roy26-Jul-09 17:40 
GeneralRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Frygreen27-Jul-09 7:42
Frygreen27-Jul-09 7:42 
GeneralRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Robin_Roy27-Jul-09 16:43
Robin_Roy27-Jul-09 16:43 
GeneralRe: Requirements, SRS, Validation, Verification - - - - oh my god Pin
Frygreen7-Oct-09 6:45
Frygreen7-Oct-09 6:45 
QuestionSaving Business Objects Pin
CodingYoshi20-May-09 7:44
CodingYoshi20-May-09 7:44 
AnswerRe: Saving Business Objects Pin
Luc Pattyn20-May-09 8:22
sitebuilderLuc Pattyn20-May-09 8:22 
Hi,

this is how I see it:

1.
a phone directory holds a number of phone numbers; the phone numbers are not saved separately, it is the directory that holds them.

2.
a filesystem directory holds (or seems to hold?) a number of files; however you can read and write files without explicitly accessing their directory, so the file is a real object. The directory basically is just holding information on files (say FileInfo objects, which do not get saved separately).

3.
now which of those two cases your Book application ressembles most?
if you want to save and restore individual books, use (2) and threat your BookCollection as a list of book references, so saving that would be e.g. a file containing book/file names.
if wou do not want to save and restore individual books, use (1)


BTW: I am not convinced your Category class makes much sense, IMO Category would be an enum, and each book would have a Category property; you Category class could just be another BookCollection holding some of the Books (the once with matching Category property), or an enumerator inside BookCollection yielding only the Books with matching category.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Saving Business Objects Pin
CodingYoshi20-May-09 8:59
CodingYoshi20-May-09 8:59 
QuestionDeveloping a LMS software. Pin
RajpootRohan18-May-09 19:13
professionalRajpootRohan18-May-09 19:13 
AnswerRe: Developing a LMS software. Pin
riced18-May-09 22:51
riced18-May-09 22:51 
AnswerRe: Developing a LMS software. Pin
Robin_Roy23-Jul-09 16:31
Robin_Roy23-Jul-09 16:31 
GeneralRe: Developing a LMS software. Pin
ScottFrostX12-Aug-09 8:01
ScottFrostX12-Aug-09 8:01 
Questiondoes any body know about Brainstorming tool Pin
netJP12L13-May-09 7:36
netJP12L13-May-09 7:36 
AnswerRe: does any body know about Brainstorming tool Pin
scottgp13-May-09 8:30
professionalscottgp13-May-09 8:30 
AnswerRe: does any body know about Brainstorming tool Pin
led mike14-May-09 4:33
led mike14-May-09 4:33 
QuestionUML Design Tool Question Pin
puromtec16-May-09 5:00
puromtec16-May-09 5:00 
AnswerRe: UML Design Tool Question Pin
led mike6-May-09 5:26
led mike6-May-09 5:26 
GeneralRe: UML Design Tool Question Pin
puromtec16-May-09 5:47
puromtec16-May-09 5:47 
AnswerRe: UML Design Tool Question Pin
puromtec16-May-09 6:47
puromtec16-May-09 6:47 
QuestionCreating Use Case for Stored Procedure Pin
puromtec14-May-09 4:50
puromtec14-May-09 4:50 
AnswerRe: Creating Use Case for Stored Procedure Pin
riced4-May-09 5:59
riced4-May-09 5:59 
GeneralRe: Creating Use Case for Stored Procedure Pin
puromtec15-May-09 13:45
puromtec15-May-09 13:45 
AnswerRe: Creating Use Case for Stored Procedure Pin
Jonathan Davies5-May-09 7:07
Jonathan Davies5-May-09 7:07 
GeneralRe: Creating Use Case for Stored Procedure Pin
puromtec15-May-09 14:02
puromtec15-May-09 14:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.