Only a
weak form of multiple inheritance: strictly one parent class, but multiple interfaces are allowed. The only exclusion is the class
System.Object
which does not have a base class. If no base class is specified, it means that a base class still exist; this implied base class is
System.Object
.
interface MyInterface1 { void Method(); }
interface MyInterface2 { void Method(); }
class MyClass : System.Windows.Form, MyInterface1, MyInterface2 {
void MyInterface1.Method() {}
void MyInterface2.Method() {}
}
class MyClass : System.Windows.Form, MyClass, MyInterface1 {
void MyInterface1.Method() {}
}
—SA