Introduction to UML Learning 2 Object-oriented method analysis and design

Source: Internet
Author: User
Tags object model

1. Object-Oriented Analysis

The object of object-oriented analysis is the objective world of knowledge and modeling.

In fact, in the object-oriented analysis process is also the demand analysis and understanding.

The process of using object-oriented analysis is generally as follows:

Get problem Statement--> determine class--> prepare data dictionary--> determine association--> use inheritance to refine type--> Perfect object Model--> establish object dynamic Model--> build system function model

(1) To obtain a problem statement is to understand the system together with the user, to understand the business logic of the system and discover the needs of the users, at this time we should look at these requirements as a user. Many designers at this time did not do enough function, resulting in the final system design and maintenance is extremely difficult, And began to complain about the user's abnormal requirements. After understanding the requirements of the system, we do not immediately start coding, if at this time you have already written a few code, then congratulations to you, after enough you suffer.

(2) When enough questions are obtained and understood, we can sort out the physical entities and concepts that come out of the problem and temporarily label them as a class entity. Then clear the redundant classes and the systems that are irrelevant to the system. And eventually get our model entity

(3) The second step of the analysis of the class to create a data dictionary, this data dictionary is likely to play a significant role in our database design.

(4) through the second and third steps, we've got the entity information in the system, and now we need to make a connection between each entity information.

For example, in a student elective system. The student is defined as an entity, and the course is defined as an entity that links two entities through elective courses. This behavior is triggered by the students. The goal is the curriculum, and the result is whether the student has successfully chosen a course. Through this analysis, In the future design process, we can easily design the student class method.

1class student{
2
3 public bool Choosecurriculum (curriculum curriculum) {
4
5//.
6
7}
8
9//.
13class curriculum{
//.
18

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.