Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the structure of web bridging mode

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "what is the structure of web bridging mode". In daily operation, I believe many people have doubts about the structure of web bridging mode. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "what is the structure of web bridging mode?" Next, please follow the editor to study!

structure

Participant

Abstraction (Window)

-defines the interface of the abstract class.

Continuing with the previous argument, the abstraction here is relative to the implementation part, and the author thinks that perhaps the more appropriate term should be the interface class. The interface of this class must be user-oriented.

-maintains a pointer to an object of type Implementor.

The real implementation code is invoked by a pointer to the concrete implementation class.

RefinedAbstraction (IconWindow)

-extend the interface defined by Abstraction.

The derived class in the customer domain, Icon is also the concept of the customer domain.

Implementor (WindowImp)

-defines the interface of the implementation class, which does not have to be exactly the same as the interface of Abstraction; in fact, the two interfaces can be completely different. Generally speaking, the Implementor interface provides only basic operations, while Abstraction defines higher-level operations based on these basic operations.

The interface class calls the interface of the implementation class to implement its own function. If it is a window class, this interface can be used to draw window elements, and if it is a communication class, this class can be used to send and receive data.

ConcreteImplementor (XwindowImp, PMWindowImp)

-implement the Implementor interface and define its implementation.

A concrete class that implements a class interface. This is the place where the function is really done. It is implemented somewhere else, at another point in time, and the existing implementation class can be replaced at any time as needed.

Collaboration

Abstraction forwards client's request to its Implementor object.

The key point is that the interface class will not implement the function within its own class or within the derived class, and the second is to transfer it to the implementation class, so that the implementation part can be replaced.

At this point, the study of "what is the structure of web bridging mode" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report