Last active
September 20, 2017 11:56
-
-
Save felippepuhle/f8aedfa0c69ff9ee278c87d3aeb47280 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
| public interface Imposto { | |
| double calcula(Orcamento orcamento); | |
| } | |
| public class ICMS implements Imposto { | |
| public double calcula(Orcamento orcamento) { | |
| return orcamento.getValor() * 0.1; | |
| } | |
| } | |
| public class ISS implements Imposto { | |
| public double calcula(Orcamento orcamento) { | |
| return orcamento.getValor() * 0.06; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment