Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


What do you mean by the Diamond of Death in csharp?
Question Posted on 05 May 2023

Home >> DotNet >> C# >> What do you mean by the Diamond of Death in csharp?




What do you mean by the Diamond of Death in csharp?
When we say about the diamond of death in C# it is an ambiguity which arise due to multiple inheritance we used in c#. Now i will take a example which will helps you to understand what is diamond of death. There are two classes Y and Z inherit from third class X, and class W inherits from both Y and Z class but doesn’t override the method defined in class X. The Diamond Problem arises when class Y or Z has overridden the method differently and class W cannot decide to inherit from either class Y or class Z.
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Simplest definition of partial classes and its rules?
Definition of Tuple class with some examples?
Define Race Condition in cSharp?
C#.Net Reserve Words
can we inherit private class level variables in c#






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |