Click here to Skip to main content
15,887,683 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Jonathan Davies24-Mar-09 8:51
Jonathan Davies24-Mar-09 8:51 
Questioncomposite pattern serializing Pin
Jarno Burger20-Mar-09 13:18
Jarno Burger20-Mar-09 13:18 
AnswerRe: composite pattern serializing Pin
Jonathan Davies22-Mar-09 5:14
Jonathan Davies22-Mar-09 5:14 
QuestionObject Oriented Design - object graphs and lookup table data Pin
Leftyfarrell13-Mar-09 2:09
Leftyfarrell13-Mar-09 2:09 
AnswerRe: Object Oriented Design - object graphs and lookup table data Pin
led mike13-Mar-09 5:03
led mike13-Mar-09 5:03 
GeneralRe: Object Oriented Design - object graphs and lookup table data Pin
Leftyfarrell14-Mar-09 3:58
Leftyfarrell14-Mar-09 3:58 
QuestionEmpty abstract method override -- good or bad design? Pin
brontofuzik12-Mar-09 10:46
brontofuzik12-Mar-09 10:46 
AnswerRe: Empty abstract method override -- good or bad design? Pin
Luc Pattyn12-Mar-09 10:57
sitebuilderLuc Pattyn12-Mar-09 10:57 
Hi,

my 2 eurocents:

0. there is not only good or bad design, there is a continuum from very good to very bad
1. IMO overriding a method by an empty one because the functionality does not make sense is wrong.
2. throwing an exception in an override is OK
3. empty abstract overrides are only correct if that particular class needs a no-operation there; however I have never seen one.
4. FWIW, I would try and remove from the base class all functionality that is not meaningful for some of its decendents. If cats and dogs are mammals that eat and walk, and cats purr but dogs don't, then purr would not be a mammals method.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


AnswerRe: Empty abstract method override -- good or bad design? Pin
Mark Churchill12-Mar-09 14:39
Mark Churchill12-Mar-09 14:39 
GeneralRe: Empty abstract method override -- good or bad design? Pin
Luc Pattyn12-Mar-09 15:05
sitebuilderLuc Pattyn12-Mar-09 15:05 
GeneralRe: Empty abstract method override -- good or bad design? Pin
Mark Churchill12-Mar-09 15:14
Mark Churchill12-Mar-09 15:14 
QuestionTechnical Design vs. Implementation vs. Testing Pin
shakhtyor12-Mar-09 10:45
shakhtyor12-Mar-09 10:45 
AnswerRe: Technical Design vs. Implementation vs. Testing Pin
Perry Holman22-Apr-09 0:16
Perry Holman22-Apr-09 0:16 
AnswerRe: Technical Design vs. Implementation vs. Testing Pin
Robin_Roy23-Jul-09 16:38
Robin_Roy23-Jul-09 16:38 
QuestionLearning UML Pin
Brendan Vogt11-Mar-09 23:45
Brendan Vogt11-Mar-09 23:45 
AnswerRe: Learning UML Pin
User 171649212-Mar-09 0:17
professionalUser 171649212-Mar-09 0:17 
AnswerRe: Learning UML Pin
shakhtyor12-Mar-09 10:25
shakhtyor12-Mar-09 10:25 
QuestionUML Software Pin
Brendan Vogt10-Mar-09 21:08
Brendan Vogt10-Mar-09 21:08 
AnswerRe: UML Software Pin
Pete O'Hanlon10-Mar-09 22:27
mvePete O'Hanlon10-Mar-09 22:27 
AnswerRe: UML Software Pin
User 171649210-Mar-09 22:46
professionalUser 171649210-Mar-09 22:46 
QuestionRe: UML Software Pin
Brendan Vogt11-Mar-09 23:44
Brendan Vogt11-Mar-09 23:44 
AnswerRe: UML Software Pin
Pete O'Hanlon12-Mar-09 0:10
mvePete O'Hanlon12-Mar-09 0:10 
AnswerRe: UML Software Pin
User 171649212-Mar-09 0:26
professionalUser 171649212-Mar-09 0:26 
AnswerRe: UML Software Pin
shakhtyor12-Mar-09 10:51
shakhtyor12-Mar-09 10:51 
GeneralCommunicating the Reason for Method Failure Pin
Brady Kelly9-Mar-09 2:58
Brady Kelly9-Mar-09 2:58 

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.