zoukankan      html  css  js  c++  java
  • How do you design object oriented projects?

    what are things you do during the high level design phase (before you begin programming) to determine what are the classes you need (especially ones not based on any 'real world objects') and how will they interact with each other?

    The steps that I use for initial design (getting to a class diagram), are:

    1. Requirements gathering. Talk to the client and factor out the use cases to define what functionality the software should have.

    2. Compose a narrative of the individual use cases.

    3. Go through the narrative and highlight nouns (person, place, thing), as candidate classes and verbs (actions), as methods / behaviors.

    4. Discard duplicate nouns and factor out common functionality.

    5. Create a class diagram. If you're a Java developer, NetBeans 6.7 from Sun has a UML module that allows for diagramming as well as round-trip engineering and it's FREE. Eclipse (an open source Java IDE), also has a modeling framework, but I have no experience with it. You may also want to try out ArgoUML, an open source tool.

    6. Apply OOD principles to organize your classes (factor out common functionality, build hierarchies, etc.)

  • 相关阅读:
    hybrid项目h5页路由回退问题解决
    各个端类型判断
    图片展示方法总结
    微信小程序简易table组件实现
    微信小程序动画技巧
    git常用命令
    小程序跳转
    excel日期插件
    excel省市区三级分类级联
    mysql字符串分割操作
  • 原文地址:https://www.cnblogs.com/reynold-lei/p/3411630.html
Copyright © 2011-2022 走看看