Click here to Skip to main content
14,774,850 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.
 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Nathan Minier22-May-19 7:17
professionalNathan Minier22-May-19 7:17 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 9:56
MemberDavid A. Gray22-May-19 9:56 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Nathan Minier22-May-19 10:24
professionalNathan Minier22-May-19 10:24 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 10:29
MemberDavid A. Gray22-May-19 10:29 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Nathan Minier23-May-19 3:16
professionalNathan Minier23-May-19 3:16 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray23-May-19 7:13
MemberDavid A. Gray23-May-19 7:13 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Nathan Minier23-May-19 8:33
professionalNathan Minier23-May-19 8:33 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray23-May-19 8:43
MemberDavid A. Gray23-May-19 8:43 
Quote:
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".


A generic type, such as List<T> provides a generic (abstract!) implementation of a List, which has well-defined properties and methods, such as Add, Remove, Sort, and Count, whereas a concrete instance, such as List<int> implements the generic List behaviors for a list of integers. Furthermore, you cannot instantiate a List<t>, any more than you can instantiate any other abstract base class, such as System.IO.Stream; you must instantiate a List<OfType>, where OfType is some concrete type.
David A. Gray
Delivering Solutions for the Ages, One Problem at a Time
Interpreting the Fundamental Principle of Tabular Reporting

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

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.