I have C# class definition
MyViewModelClass: INotifyPropertyChanged, MyAbstractBaseForVMClass
It won't compile. Gives and error at the start of MyAbstractBaseForVMClass literal:
Interface definition is expected.
Can I not realize an interface, and inherit from an abstract class at the same time?
No you can. Just reverse them.
MyViewModelClass: MyAbstractBaseForVMClass, INotifyPropertyChanged
Interfaces always come after classes.
来源:https://stackoverflow.com/questions/7194952/inherit-from-an-abstract-class-and-realize-an-interface-at-the-same-time