Home > Java > javaTutorial > body text

What does java facade pattern refer to?

王林
Release: 2023-05-16 19:55:04
forward
1096 people have browsed it

1. It is required that the external and internal communication of the subsystem must be carried out through unified objects. The facade mode provides high-level interfaces to make the subsystem easier to use.

2. Generally speaking, it is to design a class specifically for external services. The facade object is the only channel in the external access subsystem.

Example

public class FacadeClient {
 
    public static void main(String[] args) {
        Car car = new Car();
        car.run();
        car.stop();
    }
}
Copy after login

The above is the detailed content of What does java facade pattern refer to?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template