Click here to Skip to main content
15,888,733 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Architecture vs TDD [modified] Pin
Roger Alsing9-Jun-08 1:46
Roger Alsing9-Jun-08 1:46 
Questionmember function or not? Pin
followait1-Jun-08 22:38
followait1-Jun-08 22:38 
AnswerRe: member function or not? Pin
Cedric Moonen4-Jun-08 22:34
Cedric Moonen4-Jun-08 22:34 
GeneralRe: member function or not? Pin
followait5-Jun-08 18:49
followait5-Jun-08 18:49 
GeneralRe: member function or not? Pin
Cedric Moonen5-Jun-08 20:02
Cedric Moonen5-Jun-08 20:02 
GeneralRe: member function or not? Pin
followait6-Jun-08 3:31
followait6-Jun-08 3:31 
GeneralRe: member function or not? Pin
Cedric Moonen6-Jun-08 4:23
Cedric Moonen6-Jun-08 4:23 
GeneralRe: member function or not? Pin
Member 276708410-Jun-08 3:34
Member 276708410-Jun-08 3:34 
Class A only needs to have a method AddToList.
I am visualizing from example that List is going to contain only pointer of Class A. Then base class object can point derived class object so basically this method not need to make virtual.

Even though if list is going to have copy of object then need to implement copy constructor & assignment operator in each derived class to make appropriate copy.

But from my point of view class responsibilities should not be mixed up it should be some controller class responsibility to collect object in list rather then Class A itself. So writing a separate method in any other class is better from design-wise. Or make a another class derived by CList and create a method e.g say: "CollectDataInList(A *a)" or have this method in class which is containing CList object.

Akash

QuestionAuto Complete Extender Pin
wantToLearn1-Jun-08 13:56
wantToLearn1-Jun-08 13:56 
AnswerRe: Auto Complete Extender Pin
Pete O'Hanlon1-Jun-08 21:56
mvePete O'Hanlon1-Jun-08 21:56 
QuestionManaging of Tab order in a Smart client application Pin
bluemoon200829-May-08 20:10
bluemoon200829-May-08 20:10 
AnswerRe: Managing of Tab order in a Smart client application Pin
led mike30-May-08 4:24
led mike30-May-08 4:24 
Questionbusiness use case Pin
mehrdadc4827-May-08 8:03
mehrdadc4827-May-08 8:03 
AnswerRe: business use case Pin
led mike27-May-08 8:30
led mike27-May-08 8:30 
GeneralRe: business use case Pin
Member 276708410-Jun-08 3:51
Member 276708410-Jun-08 3:51 
QuestionASP.NET Authentication and Scalability [modified] Pin
Waleed Eissa21-May-08 21:46
Waleed Eissa21-May-08 21:46 
Questionclass XXX and class XXXImpl Pin
Ahmed Charfeddine20-May-08 23:52
Ahmed Charfeddine20-May-08 23:52 
AnswerRe: class XXX and class XXXImpl Pin
Pete O'Hanlon21-May-08 22:07
mvePete O'Hanlon21-May-08 22:07 
GeneralRe: class XXX and class XXXImpl Pin
Scott Dorman25-May-08 2:42
professionalScott Dorman25-May-08 2:42 
GeneralRe: class XXX and class XXXImpl Pin
Stephen Hewitt26-May-08 15:15
Stephen Hewitt26-May-08 15:15 
GeneralRe: class XXX and class XXXImpl Pin
Ahmed Charfeddine26-May-08 23:22
Ahmed Charfeddine26-May-08 23:22 
GeneralRe: class XXX and class XXXImpl Pin
Pete O'Hanlon27-May-08 9:22
mvePete O'Hanlon27-May-08 9:22 
GeneralRe: class XXX and class XXXImpl Pin
led mike27-May-08 9:47
led mike27-May-08 9:47 
GeneralRe: class XXX and class XXXImpl Pin
Pete O'Hanlon27-May-08 10:01
mvePete O'Hanlon27-May-08 10:01 
GeneralRe: class XXX and class XXXImpl Pin
led mike27-May-08 10:19
led mike27-May-08 10:19 

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.