更新时间:2022-07-02 19:16:09
3、客户端代码
|
static void Main(string[] args)
{
// Create RefinedAbstraction
CustomersBase customers = new Customers("Shandong Province");
// Set ConcreteImplementor
customers.Data = new CustomersData();
// Exercise the bridge
customers.Show();
customers.Next();
customers.Show();
customers.Next();
customers.Show();
customers.Add("Hao xianwei");
customers.ShowAll();
Console.ReadKey();
}
|