示例#1
0
    static void Main(string[] args)
    {
        Printer  dev    = new Canon("Canon");
        Document house2 = dev.Print();

        dev = new HP("HP");
        Document house = dev.Print();

        Console.ReadLine();
    }