Practical Design Patterns for Java Developers by Miroslav Wengner
Author:Miroslav Wengner
Language: eng
Format: epub
Publisher: Packt
Published: 2023-11-15T00:00:00+00:00
Figure 4.2 â The UML class diagram shows how the Engine interface bridges access to a specific implementation
The engines already behave differently, and due to the bridge they may continue evolving (Example 4.6):
class DieselEngine implements Engine{ ... @Override public void turnOff() {...} } class PetrolEngine implements Engine{ ... @Override public void turnOff() { selfCheck(); ... } private void selfCheck(){ ...} }
Example 4.6 â The engines differ in implementation
The vehicle abstraction does not have any engine implementation details, which may vary even in the class hierarchy. The vehicle only needs to rely on the provided interface.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Ajax | Assembly Language Programming |
Borland Delphi | C & C++ |
C# | CSS |
Compiler Design | Compilers |
DHTML | Debugging |
Delphi | Fortran |
Java | Lisp |
Perl | Prolog |
Python | RPG |
Ruby | Swift |
Visual Basic | XHTML |
XML | XSL |
Deep Learning with Python by François Chollet(12142)
Hello! Python by Anthony Briggs(9547)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9501)
The Mikado Method by Ola Ellnestam Daniel Brolund(9464)
Dependency Injection in .NET by Mark Seemann(9014)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7997)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7532)
Grails in Action by Glen Smith Peter Ledbrook(7421)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7258)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6133)
Kotlin in Action by Dmitry Jemerov(4790)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(4574)
Microservices with Go by Alexander Shuiskov(4291)
Practical Design Patterns for Java Developers by Miroslav Wengner(4212)
Test Automation Engineering Handbook by Manikandan Sambamurthy(4178)
Practical Vim (for Kathryn Amaral) by Drew Neil(3812)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3699)
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(3696)
Learn SOLIDWORKS 2020 by Tayseer Almattar(3593)