private static void Main(string[] args) { Hole hole = new Hole(10); RoundThing roundThing = new RoundThing { Radius = 8 }; SquareThing squareThing = new SquareThing(10); hole.Fits(roundThing); hole.Fits(new SquareThingAdapter(squareThing)); Console.ReadKey(); }
public SquareThingAdapter(SquareThing squareThing) { _squareThing = squareThing; }