Click here to Skip to main content
15,891,136 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
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 
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 
I understand what you are saying but there is no real project. What I am really trying to do, is to find out why and where to use a base class in a hypothetical (but indeed very common) design problematic of, let's say, an ERP software.

If we narrow the problem to customers and employees, and assuming that customers are only individuals, it is obvious that both are persons, therefore a base class Persons and two inherited classes of Customers and Employees seems to be very reasonable.

But do we need to build a base class in our programme and if yes why? What is the real practical purpose of doing so? In my opinion this generalization of our two "real" classes seems to complicate designing without any having any profit from it.

That is my real question to the forum (although some of the answers above have already answered that too).
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 
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 

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.