Builder Pattern and Inheritance

后端 未结 8 506
攒了一身酷
攒了一身酷 2020-11-29 19:01

I have an object hierarchy that increases in complexity as the inheritance tree deepens. None of these are abstract, hence, all of their instances serve a, more or less soph

8条回答
  •  爱一瞬间的悲伤
    2020-11-29 19:21

    The following IEEE conference contribution Refined Fluent Builder in Java gives a comprehensive solution to the problem.

    It dissects the original question into two sub-problems of inheritance deficiency and quasi invariance and shows how a solution to these two sub-problems opens for inheritance support with code reuse in the classical builder pattern in Java.

提交回复
热议问题