Answers:
No, Instead of this, we can inheritance the multiple interface,
but C++ support multiple inheritance
No c# does not support multiple inheritance as avoid ambiguity between classes but it support multiple inheritance in the form of interfaces.
 Posted by: satish
Contact satish
c# does not support inheritance, but we can implment with help of interface.....
 Posted by: vyas
Contact vyas
C# does not support multiple inheritance directly...but it can be done using concept of interfaces.
 Posted by: Deepika
Contact Deepika
No, But It will support Multiple inheritance of Interface
class CA {
} Class CB:CA {
} Class CC: CB, CA \Is not allowed {
}
Interface IA1 {
}
Interface IA2
{
}
Class CA:IA1, IA2 \Allowed {
}
 Posted by: Nageswara Rao
Contact Nageswara Rao
Inheritace is of 2 types: 1) Multiple Implementation Inheritance 2) Multiple Interface Inheritance.
C# supports Multiple Interface Inheritance (i.e a Class can implement >1 interfaces but not more than 1 classes)
 Posted by: Farooq Majid Mir (Kashmir)
Contact Farooq Majid Mir (Kashmir)
No c# does not support,but it support multiple inheritance in the form of interfaces
 Posted by: himanshu sahu
Contact himanshu sahu
If you have the better answer, then send it to us. We will display your answer after the approval.
   
|