Class Hierarchy
Explore how to create and manage class hierarchies in plain JavaScript by defining subclass relationships, implementing get/set methods, and handling object storage with local browser storage. Understand how to structure models reflecting a design hierarchy and manage instances across related classes in your app.
We'll cover the following...
We'll cover the following...
Whenever a class hierarchy is more complex, we can’t simply eliminate it, but instead have to implement it in the following places:
- In the app’s model code.
- In the underlying database.
- In its user interface.
The starting point for our case study is the design model shown below.
We derive a JS class model and a JS entity table model from the design model ...