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

Design and Architecture

 
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 
No. I mean as candidate classes.

Begin by writing out in plain English [other languages are available] what you want to do. As an example, your system could be described thus:

Requirements:
Provide software to manage the relationships between the company and it's suppliers and customers. All the contacts can be either individual people or companies. Any company will have one or more contact. Orders are recieved from customers and placed with suppliers for the provision of Widgets and associated products. Every order received will result in an invoice being raised by the accounting system. Orders placed with suppliers will be filled and invoices for payment will be sent to the accounting system. Each order [inbound or outbound] will have a billing address and a delivery address, these need not be the same. Each customer can have default addresses associated with it.


From this initial requirement, you can take out all the nouns and noun phrases. These are your candidate classes. The next stage is to decide which ones are classes in their own right and which are attributes. Often a lot of candidates can be reduced. As an exercise, I would recommend giving this a go and see where it takes you.


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
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 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
nstk14-Nov-11 22:11
nstk14-Nov-11 22:11 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
Nagy Vilmos14-Nov-11 22:36
professionalNagy Vilmos14-Nov-11 22:36 
GeneralRe: Could there be a base class for customers, employees and suppliers? Pin
RobCroll15-Nov-11 16:56
RobCroll15-Nov-11 16:56 
QuestionDesign decision in a larger class hierarchy Pin
CDP180221-Oct-11 3:10
CDP180221-Oct-11 3:10 
QuestionSliding Scale Solution Pin
kmoorevs17-Oct-11 11:11
kmoorevs17-Oct-11 11:11 
AnswerRe: Sliding Scale Solution Pin
Paul Conrad17-Oct-11 11:38
professionalPaul Conrad17-Oct-11 11:38 
GeneralRe: Sliding Scale Solution Pin
kmoorevs18-Oct-11 4:21
kmoorevs18-Oct-11 4:21 
GeneralRe: Sliding Scale Solution Pin
Paul Conrad18-Oct-11 5:24
professionalPaul Conrad18-Oct-11 5:24 

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.