Click here to Skip to main content
15,901,853 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Diagramming Standards? Pin
jschell12-Dec-11 8:46
jschell12-Dec-11 8:46 
GeneralRe: Diagramming Standards? Pin
dawmail33313-Dec-11 2:54
dawmail33313-Dec-11 2:54 
GeneralRe: Diagramming Standards? Pin
Nagy Vilmos13-Dec-11 5:24
professionalNagy Vilmos13-Dec-11 5:24 
AnswerRe: Diagramming Standards? Pin
Stefan_Lang13-Dec-11 2:53
Stefan_Lang13-Dec-11 2:53 
GeneralRe: Diagramming Standards? Pin
dawmail33313-Dec-11 2:55
dawmail33313-Dec-11 2:55 
GeneralRe: Diagramming Standards? Pin
Stefan_Lang13-Dec-11 3:45
Stefan_Lang13-Dec-11 3:45 
GeneralRe: Diagramming Standards? Pin
Nagy Vilmos13-Dec-11 5:23
professionalNagy Vilmos13-Dec-11 5:23 
QuestionInheritance - what's your take on this? Pin
lclarsen5-Dec-11 23:02
lclarsen5-Dec-11 23:02 
Hi,

I'm in the process of defining some classes for the elements in a type of listbox control. I'm thinking about having a parent class from which, each element inherits, with common information such as ID, title etc. But the individual elements in the list will have properties that are specific to their own type. Some will have a fileName attribute while others wont.

The parent class is handy for sorting operations and other generic tasks, but I will need to differentiate between the instances at some point in my code. Should I have a type attribute in the parent class to tell me what attributes to read for a specific instance? I don't wan't to have virtual members in my parent class that are only meaningful for some instances.

Maybe the elements don't have enough in common to warrent inheritance?! BTW, I will not have access to reflection techniques to tell me which type and instance is. Unmanaged C++ to be exact.

Thanks.
AnswerRe: Inheritance - what's your take on this? Pin
Mycroft Holmes6-Dec-11 0:09
professionalMycroft Holmes6-Dec-11 0:09 
AnswerRe: Inheritance - what's your take on this? Pin
Eddy Vluggen6-Dec-11 8:15
professionalEddy Vluggen6-Dec-11 8:15 
AnswerRe: Inheritance - what's your take on this? Pin
Chris Meech6-Dec-11 8:33
Chris Meech6-Dec-11 8:33 
GeneralRe: Inheritance - what's your take on this? Pin
Eddy Vluggen6-Dec-11 8:51
professionalEddy Vluggen6-Dec-11 8:51 
GeneralRe: Inheritance - what's your take on this? Pin
lclarsen8-Dec-11 2:53
lclarsen8-Dec-11 2:53 
AnswerRe: Inheritance - what's your take on this? Pin
Shameel7-Dec-11 2:54
professionalShameel7-Dec-11 2:54 
AnswerRe: Inheritance - what's your take on this? Pin
jschell9-Dec-11 11:37
jschell9-Dec-11 11:37 
AnswerRe: Inheritance - what's your take on this? Pin
Stefan_Lang13-Dec-11 4:13
Stefan_Lang13-Dec-11 4:13 
AnswerRe: Inheritance - what's your take on this? Pin
gentlegod00125-Dec-11 4:36
gentlegod00125-Dec-11 4:36 
QuestionConflict between Delete and global Reset in a tree view Pin
Ambe15-Nov-11 20:33
Ambe15-Nov-11 20:33 
AnswerRe: Conflict between Delete and global Reset in a tree view Pin
Mycroft Holmes15-Nov-11 21:13
professionalMycroft Holmes15-Nov-11 21:13 
GeneralRe: Conflict between Delete and global Reset in a tree view Pin
GateKeeper2218-Nov-11 6:26
GateKeeper2218-Nov-11 6:26 
AnswerRe: Conflict between Delete and global Reset in a tree view Pin
Eddy Vluggen26-Nov-11 6:39
professionalEddy Vluggen26-Nov-11 6:39 
QuestionEmployee Portal Pin
Sunil Kokkiligadda15-Nov-11 9:44
Sunil Kokkiligadda15-Nov-11 9:44 
AnswerRe: Employee Portal Pin
Mycroft Holmes15-Nov-11 21:19
professionalMycroft Holmes15-Nov-11 21:19 
AnswerRe: Employee Portal Pin
R. Giskard Reventlov15-Nov-11 21:49
R. Giskard Reventlov15-Nov-11 21:49 
QuestionRe: Employee Portal Pin
Sunil Kokkiligadda16-Nov-11 12:30
Sunil Kokkiligadda16-Nov-11 12:30 

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.