OO Design

  • Thread starter Thread starter Ali Elhamdi
  • Start date Start date
Sure, why not.

Something like
public class MyClass : MyAbstractClass, ISomeInterface{
...
}

The compiler would have been able to validate this for you.
 
In C#, Can I inherit from an abstract class and and interface at the same
time?

Ali

Yes. A C# class can inherit from one base class and can implement 0 to
many interfaces.
 
Back
Top