July 2018
Intermediate to advanced
242 pages
8h 6m
English
We are going to work on implementing a set of the following classes using the Delegate pattern instead of inheritance:

In this class diagram, you can see two base classes that are being derived from the BasePublication class with its Book and Magazine subclasses, and the BaseUser class, which is extended by the Member and Librarian subclasses. Note that those base classes are implementing corresponding interfaces declaring their properties. The BaseUser class implements the User interface, and the BasePublication class implements the Publication interface. There is also the Rental interface, which declares methods implemented ...
Read now
Unlock full access