Click here to Skip to main content
14,666,389 members
Home » Discussions » C#
   

C#

 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming15-Jun-20 22:47
mveRichard Deeming15-Jun-20 22:47 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier15-Jun-20 22:56
MemberWiep Corbier15-Jun-20 22:56 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming15-Jun-20 23:47
mveRichard Deeming15-Jun-20 23:47 
GeneralRe: Multiple Classes, same name Pin
Member 798912216-Jun-20 0:05
MemberMember 798912216-Jun-20 0:05 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming16-Jun-20 0:31
mveRichard Deeming16-Jun-20 0:31 
GeneralRe: Multiple Classes, same name Pin
Member 798912216-Jun-20 0:44
MemberMember 798912216-Jun-20 0:44 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 0:20
MemberWiep Corbier16-Jun-20 0:20 
GeneralRe: Multiple Classes, same name Pin
Richard Deeming16-Jun-20 0:28
mveRichard Deeming16-Jun-20 0:28 
Inheritance is a useful tool for encapsulating state and/or behaviour. It can be overused, but at the moment in C# it doesn't introduce any contradictions or ambiguity. C# doesn't have multiple inheritance, so it doesn't suffer from the "diamond problem"[^].

I'm still struggling to see what problem you think your idea would solve. All I can see is code where I can't tell whether you meant this FooBar.Baz class, or that FooBar.Baz class, because they both have identical names.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

AnswerRe: Multiple Classes, same name Pin
ZurdoDev16-Jun-20 2:16
mveZurdoDev16-Jun-20 2:16 
GeneralRe: Multiple Classes, same name Pin
ZurdoDev16-Jun-20 2:18
mveZurdoDev16-Jun-20 2:18 
GeneralRe: Multiple Classes, same name Pin
Dave Kreskowiak16-Jun-20 3:16
mveDave Kreskowiak16-Jun-20 3:16 
GeneralRe: Multiple Classes, same name Pin
Nelek22-Jun-20 5:53
protectorNelek22-Jun-20 5:53 
AnswerRe: Multiple Classes, same name Pin
OriginalGriff15-Jun-20 22:32
mveOriginalGriff15-Jun-20 22:32 
AnswerRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 0:27
mveRichard MacCutchan16-Jun-20 0:27 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 0:36
MemberWiep Corbier16-Jun-20 0:36 
GeneralRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 0:52
mveRichard MacCutchan16-Jun-20 0:52 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 0:55
MemberWiep Corbier16-Jun-20 0:55 
GeneralRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 1:05
mveRichard MacCutchan16-Jun-20 1:05 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 1:17
MemberWiep Corbier16-Jun-20 1:17 
GeneralRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 1:37
mveRichard MacCutchan16-Jun-20 1:37 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 1:50
MemberWiep Corbier16-Jun-20 1:50 
GeneralRe: Multiple Classes, same name Pin
OriginalGriff16-Jun-20 1:58
mveOriginalGriff16-Jun-20 1:58 
GeneralRe: Multiple Classes, same name Pin
Wiep Corbier16-Jun-20 2:10
MemberWiep Corbier16-Jun-20 2:10 
GeneralRe: Multiple Classes, same name Pin
Richard MacCutchan16-Jun-20 2:18
mveRichard MacCutchan16-Jun-20 2:18 
GeneralRe: Multiple Classes, same name Pin
Member 798912216-Jun-20 3:13
MemberMember 798912216-Jun-20 3:13 

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.