Interfaces Based on Interfaces : Interface hierarchy « Class « C# / CSharp Tutorial






  1. One interface can inherit another.
  2. The syntax is the same as for inheriting classes.
using System.Runtime.Serialization;
using System;

interface IComparableSerializable : IComparable, ISerializable
{
    string GetStatusString();
}








7.33.Interface hierarchy
7.33.1.Interfaces Based on Interfaces
7.33.2.Interface Inheritance Demo
7.33.3.Interfaces Inheriting Interfaces
7.33.4.One interface can inherit another.
7.33.5.Inheritance from both class and interface