Created
May 20, 2014 01:01
-
-
Save incepttechnologies/cbcb237f97c89410314d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Alternative | |
public class ImplementerA implements ImplementerIntf{ | |
@Override | |
public String showImplementer() { | |
return this.getClass().getName(); | |
} | |
} |
This file contains hidden or 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
@Alternative | |
public class ImplementerB implements ImplementerIntf{ | |
@Override | |
public String showImplementer() { | |
return this.getClass().getName(); | |
} | |
} |
This file contains hidden or 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
@Alternative | |
public class ImplementerC implements ImplementerIntf{ | |
@Override | |
public String showImplementer() { | |
return this.getClass().getName(); | |
} | |
} |
This file contains hidden or 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
public interface ImplementerIntf extends Serializable { | |
public String showImplementer(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment