Question one: Why do you have to face the object of the language, to solve what kind of problem?
All programming languages provide abstraction, assembly language is the abstraction of the underlying machine, but still require the programmer to think in terms of the structure of the computer, and the programmer must be able to make connections between the machine model and the model of the problem that is actually being solved. (actually a modeling process) is the early model of the problem to be solved, which is the face of the process, but the flaw is quickly discovered, the program it is writing is difficult to maintain or expensive to maintain. The object-facing approach provides programmers with the tools to represent various elements of things in the problem space. The advantage is that when we describe the code of the solution, it is the text that expresses the problem. This allows the programmer to describe the problem in terms of the problem itself and so on, rather than the terminology of the computer on which the solution is to be run.
Question two: What are the difficulties facing object design?
Establish a one-to-one mapping between the elements in the problem space and the objects in the space.
Question three: How does an object work? How do I receive a request?
Each object can only satisfy a specific request, and the request that can be made to the object is defined by its interface (the related function).
Use the Unified Modeling Language (Unified Modeling Language) design diagram to represent objects, including type names, data members, and member functions, from top to bottom.
Attached: Unified Modeling Language (Uml,unifiedmodelinglanguage) is a standardized modeling language for object-oriented software. Because of its simple and unified characteristics, UML can express the dynamic and static information in software design, so it has become the industry standard of visual modeling language. In the development of software radio system, the Unified Modeling language can be used throughout the design cycle, helping designers shorten design time, reduce the cost of improvement, and optimize hardware and software segmentation.
What does the access control boundary in C + + mean? Why set boundaries? How to set it?
The Software library programmer has set the bounds of access control because he does not want the client programmer to break the program because of improper operation. The benefit of the implementation is to reduce the program error (1) The client programmer is unable to intervene in the internal program. 2. The Library programmer can modify the internal program without affecting the customer. )
Class, what is Object reuse? Combination?
Reuse objects can be used directly, or you can put this object into a new class. A combination is a new object that is made up of any number and type of objects.
This article is from the "Listen to Rain" blog, please be sure to keep this source http://1624912549.blog.51cto.com/10534998/1733292
The first encounter to face the object