Click here to Skip to main content
15,848,093 members
Home / Discussions / C#
   

C#

 
Generalinelegance Pin
TuringTest17-Jan-04 22:41
TuringTest17-Jan-04 22:41 
GeneralRe: inelegance Pin
Philip Fitzsimons8-Jan-04 4:28
Philip Fitzsimons8-Jan-04 4:28 
GeneralRe: inelegance Pin
leppie8-Jan-04 7:07
leppie8-Jan-04 7:07 
GeneralRe: inelegance Pin
Philip Fitzsimons8-Jan-04 7:16
Philip Fitzsimons8-Jan-04 7:16 
GeneralRe: inelegance Pin
TuringTest18-Jan-04 7:26
TuringTest18-Jan-04 7:26 
GeneralRe: inelegance Pin
leppie8-Jan-04 7:56
leppie8-Jan-04 7:56 
GeneralRe: inelegance Pin
TuringTest18-Jan-04 8:34
TuringTest18-Jan-04 8:34 
GeneralAbstract, Interface, and Attribute Pin
TuringTest17-Jan-04 21:40
TuringTest17-Jan-04 21:40 
Confused | :confused: what are the design tradeoffs between different constructs to collect objects based on some common functionality?

Suppose i want to rely on objects being able to "display" themselves. What's the difference between using Abstract Base, Interface, or Attribute? Since c# doesnt allow multiple inheritance i'd guess Abstract base should be reserved for "core" properties of the object, and i guess Interfaces are there exactly so my displayThyself methods can be expressed. What about [Serializable], that has properties similar to an interface except for specifying a constructor as one of the mandatory methods.

Is there a discussion of what construct to use when and why?

Thanks in advance! Smile | :)


________________________________________

Gosh, it would be awful pleas'n, to reason out the reason, for things I can't explain.
Then perhaps I'd deserve ya, and be even worthy of ya..
if I only had a brain!
GeneralRe: Abstract, Interface, and Attribute Pin
Mazdak7-Jan-04 21:56
Mazdak7-Jan-04 21:56 
GeneralRe: Abstract, Interface, and Attribute Pin
TuringTest17-Jan-04 22:32
TuringTest17-Jan-04 22:32 
GeneralRe: Abstract, Interface, and Attribute Pin
Heath Stewart8-Jan-04 6:32
protectorHeath Stewart8-Jan-04 6:32 
GeneralRe: Abstract, Interface, and Attribute Pin
TuringTest18-Jan-04 6:51
TuringTest18-Jan-04 6:51 
GeneralRe: Abstract, Interface, and Attribute Pin
Heath Stewart8-Jan-04 6:53
protectorHeath Stewart8-Jan-04 6:53 
GeneralRe: Abstract, Interface, and Attribute Pin
TuringTest18-Jan-04 7:01
TuringTest18-Jan-04 7:01 
GeneralRe: Abstract, Interface, and Attribute Pin
Heath Stewart8-Jan-04 7:12
protectorHeath Stewart8-Jan-04 7:12 
GeneralRe: Abstract, Interface, and Attribute Pin
TuringTest18-Jan-04 7:39
TuringTest18-Jan-04 7:39 
GeneralRe: Abstract, Interface, and Attribute Pin
Heath Stewart8-Jan-04 8:13
protectorHeath Stewart8-Jan-04 8:13 
GeneralRe: Abstract, Interface, and Attribute Pin
TuringTest18-Jan-04 8:50
TuringTest18-Jan-04 8:50 
GeneralRe: Abstract, Interface, and Attribute Pin
Heath Stewart8-Jan-04 8:52
protectorHeath Stewart8-Jan-04 8:52 
GeneralRe: Abstract, Interface, and Attribute Pin
TuringTest18-Jan-04 12:39
TuringTest18-Jan-04 12:39 
GeneralRe: Abstract, Interface, and Attribute Pin
Heath Stewart8-Jan-04 13:11
protectorHeath Stewart8-Jan-04 13:11 
GeneralRe: Abstract, Interface, and Attribute Pin
bnieland8-Jan-04 7:50
bnieland8-Jan-04 7:50 
GeneralRe: Abstract, Interface, and Attribute Pin
TuringTest18-Jan-04 8:46
TuringTest18-Jan-04 8:46 
GeneralQuoted-Printable Decoder Pin
7-Jan-04 19:33
suss7-Jan-04 19:33 
GeneralRe: Quoted-Printable Decoder Pin
Heath Stewart7-Jan-04 20:00
protectorHeath Stewart7-Jan-04 20:00 

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.