Architecture design

Architecture design


1. It is to define the interface of related functions, and the specific implementation is realized by specific functions.
2. The implementation of an overall function will call the specific instance of the interface of each module (the parent class reference points to the subclass object) to realize the overall function.
3. When the specific function changes, it only needs to add a specific implementation, and there is no need to change the code for the implementation of the overall function.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326677411&siteId=291194637