首页 > 代码库 > DesignPattern_Structural_Adapter

DesignPattern_Structural_Adapter

void Main(){    Target t = new Adapter();    t.TargetShow();}class Target{    public virtual void TargetShow(){}}class Adapter:Target{    Subject subject = new Subject();    public override void TargetShow(){        subject.SubjectShow();    }}class Subject{    public void SubjectShow(){}}

 

DesignPattern_Structural_Adapter