static void Main(string[] args) { Triceratops triceratops = new Triceratops(); var child = ChildCreator.CreateChild(new TriceratopsToMammalAdapter(triceratops)); child.Cry(); }
public static void AdapterExample() { var triceratops = new Triceratops(); var child = ChildCreator.CreateChild(new TriceratopsToMammalAdapter(triceratops)); child.Cry(); }