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(12361)
Hello! Python by Anthony Briggs(9717)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9611)
The Mikado Method by Ola Ellnestam Daniel Brolund(9593)
Dependency Injection in .NET by Mark Seemann(9131)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8126)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7635)
Grails in Action by Glen Smith Peter Ledbrook(7545)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7360)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6258)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(5971)
Microservices with Go by Alexander Shuiskov(5707)
Practical Design Patterns for Java Developers by Miroslav Wengner(5620)
Test Automation Engineering Handbook by Manikandan Sambamurthy(5608)
Angular Projects - Third Edition by Aristeidis Bampakos(4939)
Kotlin in Action by Dmitry Jemerov(4904)
The Art of Crafting User Stories by The Art of Crafting User Stories(4503)
NetSuite for Consultants - Second Edition by Peter Ries(4481)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(4285)
