Interviews2 answers
Does C# support multiple Inheritance?
2 Answers
No. It supports only user interfaces.
Ashu DhaundiyalPosted Oct 16, 2014, 11:06 PM EDT
No,
it can be achieved by using Interface.
eg:
Interface xyz()
{
void Add();
}
Interface Abc()
{
void mul();
}
public class corner:Abc,xyz
{
public void Add()
{
Console.writeline("Added");
}
public void mul()
{
Console.writeline("Multiplied");
}
}
Pavan RamamurthyPosted Aug 29, 2013, 4:43 AM EDT

