摘要: 正常解决问题的思维是 -- 大问题分解成中问题 --中问题分解成--小问题 先解决小问题 逐步解决所有问题. 原始 紧耦合例子 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using Syste 阅读全文
posted @ 2020-09-21 16:40 庚子年小菜鸟 阅读(165) 评论(0) 推荐(0)
摘要: // 铁锰C#入门 视频P29 接口 例子三(手机接口 实现三个手机与方法 解耦)// 在代码当中,若有可以替换的地方,就一定会有接口存在 为了松耦合 解耦而生,,使的功能提供方可替换 降低风险 1 using System; 2 using System.Collections.Generic; 阅读全文
posted @ 2020-09-21 10:52 庚子年小菜鸟 阅读(138) 评论(0) 推荐(0)
摘要: 刘铁锰C#入门 视频P29 接口即契约(contract) 例子二(紧耦合--汽车与引擎) 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namesp 阅读全文
posted @ 2020-09-21 08:48 庚子年小菜鸟 阅读(146) 评论(0) 推荐(0)