Encapsulate what varies

Figure 1

   

                            

 

Figure 2

原文地址:https://www.cnblogs.com/anders06/p/1355198.html