Deriving New Interfaces from Existing Ones - CSharp Custom Type

CSharp examples for Custom Type:interface

Introduction

The following snippet shows how the IShape interface created earlier could be extended:

public interface IShape
{
      long Area();
      long Circumference();
      int Sides{ get; set; };
}
interface I3DShape : IShape
{
    int Depth { get; set; }
}

Related Tutorials