
How to teach an essential skill in domain modeling?
The Eric Normand Podcast
00:00
JavaScript: A Way to Implement Alternatives
An interface with its different classes implementing it is actually a way to implement an alternatives. This alternative represents a decision among different choices and each class can represent one of those choices. What's an alternative? The different pizza toppings. Do you want olives or mushrooms or even better is the size of a pizza, do you want small, medium or large? You choose one out of those three alternatives.
Transcript
Play full episode