【正文】
plication should be one of the smallest category, This category could include other reusable kind of behavior effectively together. 華北科技學(xué)院畢業(yè)設(shè)計(jì) (論文 ) 8 中文譯文 C設(shè)計(jì)模式 一個(gè)模式是一種方案,利用這種方案,我們可以完成某項(xiàng)工作。 This statement of the Declaration of a new type of mission. Commissioned by the name of the type BorrowReader. The statement said the mission can use any type of technique is, as long as the method of receiving a IDataReader object as a method parameters, and return types of methods to object. If a certain category is the following : Pricate static object GetNames (IDataReader reader) { //… } GetNames () method parameter types and return types to meet BorrowReader missioned by the types of standardized definition, this method can be used to name the types missioned example, Examples of the statement is as follows : Is a variable b BorrowReader missioned by the types of examples. Any visit to the mission examples of code can be called Object b, then missioned example of the calling object b inclusive approach. The reason why the use of object example b, as this program has the following advantages : other ways in the right time calling object b and an inclusive approach. For example : a category of data services available to read on a database, called a BorrowReader missioned example (that is, the above reader transmitted to the mission examples), then read this database as a resource for the release. 華北科技學(xué)院畢業(yè)設(shè)計(jì) (論文 ) 4 C interface can be an inclusive, C attributes (property), and indexer. Interface can be a tolerant, inclusive but not missioned. Why? We can simply gives the following explanation : Delegate keyword introduction of a new type, and the event keyword introduction of a new member. A statement standardized interfaces members, and not the type, time can be classified interface, which can not be classified as missioned interface. And detailed explanation : Event keyword statement of a specific type of field (an incident) standardize the types (must be a missioned type) and their names. C restrictions on the visit, the customer can not use the incident type (missioned by the type) of all acts. Customers can only use missioned by the + = and = acts. Such restrictions are the result of : Only statement classes can call (or excited) an incident. However, as long as inclusive so that a certain category of a public member of the incident, a client interface types can be posed of the above examples that category. The incident is a kind of interface standard ponent, we have ample reason for the interface, including the incident. When entrusted to a single callback method, one based on interface design is equally effective. However, if the design needs to hold the missioning of Togo and called method, then entrusted clearer. When a particular target for the use of a missioned for a number of clients (for example, hits on the incident) for the registration, this advantage is particularly prominent. Is a one time member, the member can make an object or class to give notice to the news. Understand the language C missioned may be difficult, especially because we repeat the definition of trust the meaning of the term. For example, we can use the mission of the term mission statement said a mission types, and even missioned an example. Particularly, people always say, Call a mission, but an object can only call a missioned example, not calling a missioned type. If you feel this is part of some confusion hard, do not worry, a lot of people are. But we should really seriously study missioned by the C is how to work. which is not only to understand how the application of the key, as well as understanding how the category of interactive key. 3. Interface and attributes C language can be an excuse for standardized interface must provide the indexer or C attributes. If your definition of a new type of set, then we need to standardize an indexer. If you make the following statement, a realization that must include a method and the method to use an attribute value, and (or) the need to set this attribute value, then you will need a standard C attributes. 華北科技學(xué)院畢業(yè)設(shè)計(jì) (論文 ) 5 Following is a statement of a code without the use of C attributes interface, but the realization, the need for a targeting of the attributes of the visit. Public interface IAdvertisement { Int GetID ()。華北科技學(xué)院畢業(yè)設(shè)計(jì) (論文 ) 1 外文科技資料翻譯 英文原文 Design Patterns in C A model is a program using such a program, we can plete certain tasks. A model is a way through this way, we can achieve a certain purpose. Meanwhile, a model is a technology.