Click here to Skip to main content
15,893,668 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 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 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray23-May-19 7:43
David A. Gray23-May-19 7: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 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 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Matthew Dennis22-May-19 9:56
sysadminMatthew Dennis22-May-19 9: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.