Skip to content

Instantly share code, notes, and snippets.

@felippepuhle
Created September 21, 2017 00:51
Show Gist options
  • Select an option

  • Save felippepuhle/82be2e51bdff501dc06741448288c2ff to your computer and use it in GitHub Desktop.

Select an option

Save felippepuhle/82be2e51bdff501dc06741448288c2ff to your computer and use it in GitHub Desktop.
class ICPP extends TemplateDeImpostoCondicional {
public boolean deveUsarMaximaTaxacao(Orcamento orcamento) {
return orcamento.getValor() > 500;
}
public double maximaTaxacao(Orcamento orcamento) {
return orcamento.getValor() * 0.07;
}
public double minimaTaxacao(Orcamento orcamento) {
return orcamento.getValor() * 0.05;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment