加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

设计模式 – 如何解释依赖注入到5岁?

发布时间:2020-12-14 01:50:02 所属栏目:百科 来源:网络整理
导读:什么是解释 dependency injection的好方法? 我在Google上发现了几个教程,但没有人会认为读者只是一个Java初学者。你会怎么解释这个新手? 我给你五岁的依赖注入。 When you go and get things out of the refrigerator for yourself,you can cause problem
什么是解释 dependency injection的好方法?

我在Google上发现了几个教程,但没有人会认为读者只是一个Java初学者。你会怎么解释这个新手?

我给你五岁的依赖注入。

When you go and get things out of the refrigerator for yourself,you can cause problems. You might leave the door open,you might get something Mommy or Daddy doesn’t want you to have. You might even be looking for something we don’t even have or which has expired.

What you should be doing is stating a need,“I need something to drink with lunch,” and then we will make sure you have something when you sit down to eat.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读