Eliminate a Class Hierarchy and Create a Class Model

Let’s learn how to eliminate a class hierarchy and create a JavaScript class model.

We'll cover the following

Simple class hierarchies can be eliminated if we apply the Class Hierarchy Merge design pattern. The starting point for our case study is the simple class hierarchy shown in the information design model below. This hierarchy represents a disjoint (but incomplete) rigid segmentation of Book into TextBook and Biography.

Get hands-on with 1400+ tech skills courses.