Click here to Skip to main content
15,914,162 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionForms vs Dialogs - A Question of Architecture Pin
Roger Wright1-Apr-09 19:43
professionalRoger Wright1-Apr-09 19:43 
AnswerRe: Forms vs Dialogs - A Question of Architecture Pin
led mike2-Apr-09 8:45
led mike2-Apr-09 8:45 
GeneralRe: Forms vs Dialogs - A Question of Architecture Pin
Roger Wright2-Apr-09 17:52
professionalRoger Wright2-Apr-09 17:52 
GeneralRe: Forms vs Dialogs - A Question of Architecture Pin
led mike3-Apr-09 5:27
led mike3-Apr-09 5:27 
AnswerRe: Forms vs Dialogs - A Question of Architecture Pin
dealon2-Apr-09 20:50
dealon2-Apr-09 20:50 
QuestionClass methods Pin
CrimeanTurtle200831-Mar-09 14:01
CrimeanTurtle200831-Mar-09 14:01 
AnswerRe: Class methods Pin
led mike2-Apr-09 8:22
led mike2-Apr-09 8:22 
QuestionOOP Programming, Two approachs for a problem Pin
Quake2Player22-Mar-09 16:52
Quake2Player22-Mar-09 16:52 
Hello,

I'm making an email client as a homework.
Its supposed to have multiple account support, contacts, etc.

But im in a discussion with another person about an OOP thing,

We have the class "Message", and it contains the fields from, to, bcc, cc, and of course others, but this problem is focused on those fields.

Considering that:
-A message can contain multiple emails in the to, bcc, and cc field.
-For whatever reasons we have the classes Account and Contact

One approach:
To have all these fields of type string, that is:
from : string
to : List< string >
bcc : List< string >
cc : List< string >


Second approach:
To have the class Person (with the fields name and email) which is a generalization of Account and Contact, that is:
Account extends Person
Contact extends Person

And in the class Message, to have these fields of type Person, that is:
from : Person
to : List< person >
bcc : List< person >
cc : List< person >



I would go for the second approach but the other person insists on going with the 1st choice, and I don't know how to convince it, and to convince myself that i'm right.

SORRY BAD ENGLISH!


AnswerRe: OOP Programming, Two approachs for a problem Pin
PIEBALDconsult22-Mar-09 17:45
mvePIEBALDconsult22-Mar-09 17:45 
AnswerRe: OOP Programming, Two approachs for a problem Pin
Jonathan Davies23-Mar-09 3:13
Jonathan Davies23-Mar-09 3:13 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Quake2Player23-Mar-09 6:53
Quake2Player23-Mar-09 6:53 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Jonathan Davies23-Mar-09 8:25
Jonathan Davies23-Mar-09 8:25 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Quake2Player23-Mar-09 8:42
Quake2Player23-Mar-09 8:42 
GeneralRe: OOP Programming, Two approachs for a problem Pin
led mike23-Mar-09 8:31
led mike23-Mar-09 8:31 
AnswerRe: OOP Programming, Two approachs for a problem Pin
Quake2Player24-Mar-09 7:31
Quake2Player24-Mar-09 7:31 
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 
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 

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.