This solution is enough in some situations. In others, you will need inheritance, and in some more complicated situations, you will have to resort to class aliases. That's what I failed to make perfectly clear in my article.
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.