public static void Test() { Shape theShape = new Rectangle(); Color white = new White(); Color red = new Red(); theShape.Color = white; theShape.Draw(); theShape.Color = red; theShape.Draw(); }
public static void Test() { Shape theShape = new Rectangle(); Color white = new White(); Color red = new Red(); theShape.Color = white; theShape.Draw(); theShape.Color = red; theShape.Draw(); }