Click here to Skip to main content
15,900,532 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: How far is to far for separation of concerns? Pin
gentlegod00125-Dec-11 4:36
gentlegod00125-Dec-11 4:36 
QuestionCould there be a base class for customers, employees and suppliers? Pin
nstk10-Nov-11 2:31
nstk10-Nov-11 2:31 
AnswerRe: Could there be a base class for customers, employees and suppliers? Pin
CDP180210-Nov-11 2:47
CDP180210-Nov-11 2:47 
AnswerRe: Could there be a base class for customers, employees and suppliers? Pin
Wayne Gaylard10-Nov-11 2:52
professionalWayne Gaylard10-Nov-11 2:52 
AnswerRe: Could there be a base class for customers, employees and suppliers? Pin
nstk10-Nov-11 6:04
nstk10-Nov-11 6:04 
AnswerRe: Could there be a base class for customers, employees and suppliers? Pin
Pete O'Hanlon10-Nov-11 7:37
mvePete O'Hanlon10-Nov-11 7:37 
AnswerRe: Could there be a base class for customers, employees and suppliers? Pin
jschell10-Nov-11 8:50
jschell10-Nov-11 8:50 
AnswerRe: Could there be a base class for customers, employees and suppliers? Pin
Nagy Vilmos10-Nov-11 10:25
professionalNagy Vilmos10-Nov-11 10:25 
A reasonable exercise at this point would be to identify the characteristics that you wish to associate with each of the different types. You may well find that there is an hierarchy that you have missed.

From experience, there should be a Person that is used to represent a physical being [and maybe a role in some cases] and an Organisation to represent companies [which will have Person contacts.

Customer is abstract, as it can be a Person or an Organisation, and will also reference the list of Addresses.

For your problem domain, these might not all be needed, but they are a good starting point. You need to analyse how you will be using them, before you can decide how they will be used.


Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
nstk13-Nov-11 0:56
nstk13-Nov-11 0:56 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
Richard MacCutchan13-Nov-11 1:34
mveRichard MacCutchan13-Nov-11 1:34 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
nstk13-Nov-11 3:36
nstk13-Nov-11 3:36 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
Richard MacCutchan13-Nov-11 3:44
mveRichard MacCutchan13-Nov-11 3:44 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
nstk13-Nov-11 4:11
nstk13-Nov-11 4:11 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
Nagy Vilmos14-Nov-11 0:18
professionalNagy Vilmos14-Nov-11 0:18 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
jschell14-Nov-11 8:09
jschell14-Nov-11 8:09 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
Nagy Vilmos14-Nov-11 0:29
professionalNagy Vilmos14-Nov-11 0:29 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
nstk14-Nov-11 8:51
nstk14-Nov-11 8:51 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
Nagy Vilmos14-Nov-11 23:06
professionalNagy Vilmos14-Nov-11 23:06 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
nstk15-Nov-11 3:51
nstk15-Nov-11 3:51 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
Nagy Vilmos15-Nov-11 4:08
professionalNagy Vilmos15-Nov-11 4:08 
AnswerRe: Could there be a base class for customers, employees and suppliers? Pin
RobCroll13-Nov-11 10:38
RobCroll13-Nov-11 10:38 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
Nagy Vilmos14-Nov-11 0:14
professionalNagy Vilmos14-Nov-11 0:14 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
R. Giskard Reventlov14-Nov-11 1:51
R. Giskard Reventlov14-Nov-11 1:51 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
RobCroll14-Nov-11 10:10
RobCroll14-Nov-11 10:10 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
Nagy Vilmos14-Nov-11 11:43
professionalNagy Vilmos14-Nov-11 11:43 

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.