C#. Interfaces – simple example

123

base class Shape

Triangle, Hexagon, Circle – derived from Shape

Triangle, Hexagon implement interface IPointy

Circle – NOT implement IPointy

 

This entry was posted in C#. Bookmark the permalink.

Leave a Reply