Shenzhen Mobile Written memory

Source: Internet
Author: User

Shenzhen Mobile Written Memory:

1, cohesion and coupling is an important criterion to measure the independence of software module, the software design should strive to low coupling, high cohesion

2, when developing a system, if the user is not very clear about the target of the system, it is difficult to define the requirements, it is best to use _a_____.
A Prototype method
B Waterfall model
C V-Model
D Spiral Model

The prototype method is suitable for the situation where the user's needs are ambiguous. It is a model that can be modified based on a known and analyzed requirement, which is a primitive model. At all stages of software development, the relevant information is fed back to the model, and the model is gradually improved. In this process, the user's participation and decision-making strengthened, shorten the development cycle, reduce the development risk, the end result is more suitable for the user's requirements. The key and efficiency of prototype method lies in the establishment of model and the speed of modeling.

3, the aggregation relationship is "has-a" relationship, the aggregation of the whole and part of the relationship between the weak, with the hollow. The combination relationship is a "contains-a" relationship, the combination of the whole and part of the relationship between the strong, with a solid.

4, protect, public, private

First: First, when the inheritance is public, we make an analysis of whether the members of the base class are public or private or protect:

When the member is public, the derived class object can call this method and data of the base class directly, when the data is private, the object of the derived class can only access the data by calling the method inherited by the base class, and when the data is protect, The object of the derived class can invoke this data in its own way.

Second, a derived class of a derived class cannot invoke a method that inherits from a base class when the inherited method is private. That is, b inherits from a privately, then all the methods and data of a can only be accessed by B, and C can only inherit B's own method, and can not inherit A's, because private is a bit complicated, it is best not to use it in practice.

Third: constructors, constructor inheritance problems for derived classes: B (parameter name): A (parameter name), which is constructor inheritance, only needs to initialize the data specific to B

Shenzhen Mobile Written memory

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.