Design pattern for default implementation with empty methods

前端 未结 9 1365
余生分开走
余生分开走 2021-02-02 11:32

Is there a specific design pattern that describes the scenario where a non-abstract default implementation is provided that implements all or some of the method

9条回答
  •  面向向阳花
    2021-02-02 11:59

    Are you asking about the Null Object Pattern?

    Further to your edit, the MyClass object is nothing more than a default implemenation. I don't think there's any particular design pattern that describes it.

提交回复
热议问题