| Next Tip?
Home » Archive

Articles in the RSystems Category

Asp.Net, CSharp, Company asked interview questions, RSystems »

[25 Jan 2010 | No Comment | 644 views]

Q. Can I inherit two difference classes to partial classes? Following is the whole scenario of this question:
I have two classes XYZ and ABC and two partial classes  of class myClass now is it possible:
partial class myClass : XYZ
{
}
partial class myClass : ABC
{
}
Ans:  This question I have asked in RSystems, Noida and I am sharing hereunder with you :
We can’t inherit two difference classes to partial class because in C# multiple inheritance is not possible using classes.
The main reason is in C# we cant do the following:
class myClass : XYZ, …

Get Adobe Flash playerPlugin by wpburn.com wordpress themes