Interfaces Inheritance

Two situations are related to both inheritance and interfaces. The first scenario occurs when you create a class that derives from another one that implements an interface. In such a scenario, the derived class also inherits members implemented through an interface and does not need to implement the interface again. Moreover, if the base class contains members that are marked as overridable and implemented via an interface, the derived class can override such members if not private. The second scenario is a pure interface inheritance, in which an interface can inherit from another one. Continuing the previous examples, you can consider creating an IInvoice interface that inherits from IDocument and provides some more specific ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.