什么是对象分解? [英] What is Object Decomposition?

查看:82
本文介绍了什么是对象分解?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解对象分解的含义,并在Internet上阅读了很多东西,但是每种资源都以很多我无法理解的关键词来谈论.因此,这些资源希望您了解一些术语.我需要一些列出从头开始分解的基础知识的东西.

I was trying to understand what object decomposition means and read a lot of stuff on internet but every resource talks in terms of lots of keywords that i couldn't understand. So these resources expect you to know a few terms. I need something that lists the basics of decomposition from scratch.

除了将设计分解为对象之外,还有什么吗?如果否,将不胜感激.

Is it anything more than breaking the design into objects? If no, any description will be appreciated.

预先感谢

推荐答案

想象一下,您有Car对象.这是非常大的对象,难以支持.您可以将这些对象分解成较小的部分,以负责问题域的某些部分:

Imagine, you have Car object. It is very large object, hard to support. You break this objects into smaller responsible for some part of the problem domain:

  • 引擎
  • Сabin
  • 启动
  • ...

这就是分解,每个对象都可以再次破坏,例如机舱由木板,坐板,车轮组成……或者木板由车轮和其他零件组成.等等.

That's the decomposition, each of that objects can be broken again, like Cabin consist of Board, Sits, Wheel... Or probably Board consist of Wheel and other parts. Etc.

这篇关于什么是对象分解?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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