A Ali Elhamdi Nov 30, 2004 #1 In C#, Can I inherit from an abstract class and and interface at the same time? Ali
P Peter Rilling Nov 30, 2004 #2 Sure, why not. Something like public class MyClass : MyAbstractClass, ISomeInterface{ ... } The compiler would have been able to validate this for you.
Sure, why not. Something like public class MyClass : MyAbstractClass, ISomeInterface{ ... } The compiler would have been able to validate this for you.
T Tom Porterfield Nov 30, 2004 #3 In C#, Can I inherit from an abstract class and and interface at the same time? Ali Click to expand... Yes. A C# class can inherit from one base class and can implement 0 to many interfaces.
In C#, Can I inherit from an abstract class and and interface at the same time? Ali Click to expand... Yes. A C# class can inherit from one base class and can implement 0 to many interfaces.