Click here to Skip to main content
14,734,298 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
Dean Roddey22-May-19 10:52
MemberDean Roddey22-May-19 10:52 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
User 483504722-May-19 10:47
MemberUser 483504722-May-19 10:47 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 11:00
MemberDavid A. Gray22-May-19 11:00 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
User 483504722-May-19 11:25
MemberUser 483504722-May-19 11:25 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray22-May-19 12:19
MemberDavid A. Gray22-May-19 12:19 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Matthew Dennis22-May-19 11:02
sysadminMatthew Dennis22-May-19 11:02 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Jammer22-May-19 13:30
MemberJammer22-May-19 13:30 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
jsc4222-May-19 23:09
professionaljsc4222-May-19 23:09 
One of the basic missing features of C# / Java is that you cannot inherit from multiple classes. If you could have multiple inheritance, you could get name clashes where different members of the set of base classes have the same member names or even have classes derived from the same lower level base class (this is known as the diamond problem); either of these scenarios could get name clashes, which is why C# does not support it However, other languages (inc C++?) get over it by explicitly stating which base class's method they are accessing. C# already has mechanisms for resolving name clashes in interfaces. So, converting interfaces into faux abstract classes is a simple way of resolving the diamond problem.

It's about time this feature came onboard. I can't be the only one who adds comments to their interfaces giving code for typical implementation of the interface methods. Having the code outside of the comments would greatly simplify implementing interfaces. OK, the new feature is a kludge and a back-door way of creating multiple base class inheritance; but it is simple, effective, and backwards compatible.
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray23-May-19 7:36
MemberDavid A. Gray23-May-19 7:36 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
DerekT-P23-May-19 1:22
professionalDerekT-P23-May-19 1:22 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Gary Wheeler23-May-19 2:38
MemberGary Wheeler23-May-19 2:38 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
User 483504723-May-19 6:37
MemberUser 483504723-May-19 6:37 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Gary Wheeler23-May-19 6:48
MemberGary Wheeler23-May-19 6:48 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
David A. Gray23-May-19 7:32
MemberDavid A. Gray23-May-19 7:32 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
Gary Wheeler23-May-19 9:10
MemberGary Wheeler23-May-19 9:10 
GeneralRe: Blurring the Lines Between Interfaces and Abstract Classes Pin
jsc4225-May-19 9:29
professionaljsc4225-May-19 9:29 
GeneralThought of the Day Pin
OriginalGriff22-May-19 5:56
mveOriginalGriff22-May-19 5:56 
GeneralRe: Thought of the Day Pin
W Balboos, GHB22-May-19 6:10
mveW Balboos, GHB22-May-19 6:10 
GeneralRe: Thought of the Day Pin
megaadam22-May-19 6:11
professionalmegaadam22-May-19 6:11 
GeneralRe: Thought of the Day Pin
Nagy Vilmos22-May-19 6:15
professionalNagy Vilmos22-May-19 6:15 
GeneralRe: Thought of the Day Pin
OriginalGriff22-May-19 6:24
mveOriginalGriff22-May-19 6:24 
GeneralRe: Thought of the Day Pin
PeejayAdams22-May-19 6:33
MemberPeejayAdams22-May-19 6:33 
GeneralRe: Thought of the Day Pin
OriginalGriff22-May-19 6:38
mveOriginalGriff22-May-19 6:38 
GeneralRe: Thought of the Day Pin
PeejayAdams22-May-19 6:45
MemberPeejayAdams22-May-19 6:45 
GeneralRe: Thought of the Day Pin
OriginalGriff22-May-19 6:51
mveOriginalGriff22-May-19 6:51 

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.