Click here to Skip to main content
15,892,059 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralBlurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 5:57
David A. Gray22-May-19 5:57 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Nathan Minier22-May-19 6:17
professionalNathan Minier22-May-19 6:17 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 8:56
David A. Gray22-May-19 8:56 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Nathan Minier22-May-19 9:24
professionalNathan Minier22-May-19 9:24 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 9:29
David A. Gray22-May-19 9:29 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Nathan Minier23-May-19 2:16
professionalNathan Minier23-May-19 2:16 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray23-May-19 6:13
David A. Gray23-May-19 6:13 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Nathan Minier23-May-19 7:33
professionalNathan Minier23-May-19 7:33 
Great, so now we've come to consensus as to what we're saying about abstract classes, which brings us back around to where the point of contention is: I don't agree that generic classes are anything at all like abstract classes.

The most basic way I can present that thought process is this:
An abstract class describes a contract, a concrete class fulfills the contract, and a generic utilizes a contract. An abstract class presents an "is a" relationship to inheriting types; a generic presents a "operates on" relationship to assigned types.

Take List<t> as an example. Trying to compare an instance of List<t> to an instance of type T is pointless; they are completely different things. What List<t> does, though, is provide a container and enumeration strategy for instances of type T; or operations, if you will.

I think that's a far cry from "a specialized type of abstract base class".
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor

GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray23-May-19 7:43
David A. Gray23-May-19 7:43 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Nathan Minier28-May-19 1:47
professionalNathan Minier28-May-19 1:47 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 8:56
David A. Gray22-May-19 8:56 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Chris Maunder22-May-19 6:53
cofounderChris Maunder22-May-19 6:53 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 8:42
David A. Gray22-May-19 8:42 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Matthew Dennis22-May-19 9:51
sysadminMatthew Dennis22-May-19 9:51 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
User 1106097922-May-19 10:50
User 1106097922-May-19 10:50 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Matthew Dennis22-May-19 10:52
sysadminMatthew Dennis22-May-19 10:52 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Jörgen Andersson22-May-19 12:28
professionalJörgen Andersson22-May-19 12:28 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Dean Roddey22-May-19 7:12
Dean Roddey22-May-19 7:12 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
User 483504722-May-19 7:26
User 483504722-May-19 7:26 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 8:41
David A. Gray22-May-19 8:41 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Dean Roddey22-May-19 8:48
Dean Roddey22-May-19 8:48 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
PIEBALDconsult22-May-19 9:16
mvePIEBALDconsult22-May-19 9:16 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Dean Roddey22-May-19 9:31
Dean Roddey22-May-19 9:31 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
#realJSOP22-May-19 9:14
mve#realJSOP22-May-19 9:14 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 9:18
David A. Gray22-May-19 9:18 

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.