Read the notes "software Cheats" 03

Source: Internet
Author: User

Read the notes "software Cheats" 03

Read the software cheats and read the abstract factory model to explain the model of the abstract factory in a dialogue between the KFC and the father. The abstract factory provides an interface for creating a family of related or dependent objects, rather than a specific implementation class. For example, in a story, you want to create abstract food classes, to understand food characteristics: categories, prices, quantities, total price, etc., including food calculation methods. At the same time set up different food categories, such as cola, hamburger, fried chicken. Then, based on the creation of the food class, the factory model is established and the abstract class is transformed into logical entity classes. At the same time design factory according to the opening and closing principle, specific factories to create specific products.

1 before: For the abstract factory model, mainly through the classification of the establishment, before the development of the book, the development of Accounting query summary three categories, but not specifically created separately, its classification to establish a factory model.

2 So bad reason: chaotic development, the specific three main functions only realized the query, bookkeeping function, product effect is not ideal. At the same time show the gap between team cooperation, the use of recommendations is not ideal, can not meet user expectations.

3 Improve the method: the development of the product portfolio, respectively, the abstract design, to complete the functions, to provide product library development products such as: Accounting class, Query class, summary class, three items, concrete operation to complete the product. After the combination of use to complete the factory and products. At the same time, the development of a part of the completion of user experience, the classification of products to find out, to avoid the combination of re-repair

Read the notes "software Cheats" 03

Related Article

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.