Created
September 13, 2017 02:21
-
-
Save yogsma/12546c82c2d239ba40dabee3d238e37c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.betterjavacode.designpatterns.adapterexample; | |
public class EuropeAsiaAdapter implements IEuropeSocket { | |
AsiaSocket asiaSocket; | |
public EuropeAsiaAdapter(AsiaSocket asiaSocket) { | |
this.asiaSocket = asiaSocket; | |
} | |
public void getElectricity() { | |
asiaSocket.provideElectricity(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment