search

Home  >  Q&A  >  body text

Facade is similar to class inheritance, right?

Facade is similar to class inheritance, right?

︿︿2136 days ago1276

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2019-03-16 10:56:54

    It looks very similar to class inheritance, but in fact there is a big difference.


    Class inheritance shows the distinction between classes. The layer relationship is vertical.

    Facade integrates functions between multiple classes and provides a unified calling interface to the outside world to encapsulate some common functions and hide implementation details

    No matter which method is used, there are only two basic directories: code reuse and easy maintenance

    reply
    0
  • ︿

    Wearing a vest

    ︿ · 2019-03-16 11:55:35
  • Cancelreply