April 2018
Intermediate to advanced
312 pages
4h 48m
English
As the name suggests, Structural patterns are all about setting up the structure of your application so as to improve SOLID conformance as well as general usability and refactorability of your code.
Inheritance: an object automatically acquires the nonprivate fields and functions of its base class or classes. To allow instantiation, the object must implement every pure virtual member from its parents; if it does not, it is abstract and cannot be created (but you can inherit from it).
Composition: generally implies that the child cannot exist without the parent. Think of an object having members of owner<T> ...
Read now
Unlock full access