需要帮助S.O.L.I.D [英] Need help on S.O.L.I.D

查看:63
本文介绍了需要帮助S.O.L.I.D的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请您解释一下,如何在下面的场景中使用界面和抽象类来应用SOLID原则。



{Maruthi}

|

{斯威夫特} {ALTO} {BELANO}







我有Maruthi品牌,有3种车型。



能否解释一下我如何在上述场景中应用所有SOLID原则。



我尝试过:



需要满足所有SOLID原则

Could you please explain me, how can i apply SOLID Principles using Interface and Abstract classes in below scenario.

{Maruthi}
|
{Swift} {ALTO} {BELANO}



I have Maruthi brand, there are 3 types of models of car.

Could you please explain me how can i apply all SOLID principles on above scenario.

What I have tried:

Need to satisfy all the SOLID principles

推荐答案

我们不做你的功课:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!



如果遇到具体问题,请询问相关问题,我们会尽力提供帮助。但是我们不会为你做这一切!
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!


这应该指向正确的方向:使用简单C#示例的SOLID架构原则 [ ^ ]
This should point you in the right direction: SOLID architecture principles using simple C# examples[^]


非常感谢您的回复。

以上问题在最近一次采访中提出,这就是我在这里发布的原因。
Thank you very much for your reply.
The above question asked in one the recent interview, that is the reason i posted here.


这篇关于需要帮助S.O.L.I.D的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆