Created
November 12, 2010 13:55
-
-
Save mauricioaniche/674108 to your computer and use it in GitHub Desktop.
Calculadora de Salário - Exemplo 3
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
public class CalculoDeSalario { | |
public CalculoDeSalario(RegrasFiscais regrasFiscais, ...) { | |
// ... | |
} | |
public double calcula(Funcionario f) { | |
AlgoritmoDeCalculoDeSalario calculadora = f.getCargo().getAlgoritmoDeCalculo(regrasFiscais); | |
return calculadora.calcula(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment