using System;
using System.Collections.Generic;
using System.Text;
namespace 观察者模式
{
class Program
{
static void Main(string[] args)
{
//前台小姐童子喆
Secretary tongzizhe = new Secretary();
//看股票的同事
StockObserver tongshi1 = new StockObserver("魏关姹", tongzizhe);
//看NBA的同事
C#设计模式- 观察者模式(3)
最新推荐文章于 2025-04-08 21:36:48 发布
